Skip to content

Rust: s3 metadata for presigning (#5357) #28

Rust: s3 metadata for presigning (#5357)

Rust: s3 metadata for presigning (#5357) #28

Workflow file for this run

name: Rust
on:
push:
paths:
- "rust_dev_preview/**"
branches:
- main
pull_request:
paths:
- "rust_dev_preview/**"
workflow_dispatch:
permissions:
contents: read
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: setup
run: >
sudo apt-get update && sudo apt-get install -y libclang-dev &&
(
echo "Removing unwanted software... " ;
echo "Before:" ; df -h ;
sudo apt-get clean ;
sudo rm -rf /usr/share/dotnet ;
sudo rm -rf /usr/local/lib/android ;
sudo rm -rf /opt/ghc ;
sudo rm -rf /opt/hostedtoolcache/CodeQL ;
sudo docker image prune --all --force ;
echo "After:" ; df -h ;
)
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.69
components: clippy, rustfmt
- uses: actions/checkout@v3
- name: Rust format
run: >
"$HOME/.cargo/bin/cargo" fmt --manifest-path rust_dev_preview/cross_service/Cargo.toml --all --check &&
"$HOME/.cargo/bin/cargo" fmt --manifest-path rust_dev_preview/examples/Cargo.toml --all --check &&
"$HOME/.cargo/bin/cargo" fmt --manifest-path rust_dev_preview/webassembly/Cargo.toml --all --check
- name: Rust lint
if: success() || failure()
run: >
"$HOME/.cargo/bin/cargo" clippy --manifest-path rust_dev_preview/cross_service/Cargo.toml -- -D warnings &&
"$HOME/.cargo/bin/cargo" clippy --manifest-path rust_dev_preview/examples/Cargo.toml -- -D warnings &&
"$HOME/.cargo/bin/cargo" clippy --manifest-path rust_dev_preview/webassembly/Cargo.toml -- -D warnings
- name: Rust test
run: >
"$HOME/.cargo/bin/cargo" test --manifest-path rust_dev_preview/cross_service/Cargo.toml --all &&
"$HOME/.cargo/bin/cargo" test --manifest-path rust_dev_preview/examples/Cargo.toml --all &&
"$HOME/.cargo/bin/cargo" test --manifest-path rust_dev_preview/webassembly/Cargo.toml --all
env:
APP_ENVIRONMENT: test