diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4e0cf9c4d..4da0f72ab 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -26,12 +26,8 @@ jobs: - name: Setup rust toolchain run: rustup show working-directory: ${{ matrix.dir }} - # actions-rs/cargo does not support the `working-directory` argument, - # see https://github.com/actions-rs/cargo/issues/6 - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --manifest-path ${{ matrix.dir }}/Cargo.toml --all -- --check + - run: cargo fmt --all -- --check + working-directory: ${{ matrix.dir }} clippy: runs-on: [self-hosted, Linux, small] container: mobilecoin/rust-sgx-base:latest @@ -45,5 +41,5 @@ jobs: - name: Setup rust toolchain run: rustup show working-directory: ${{ matrix.dir }} - - run: cargo clippy --all --all-features -- -D warnings + - run: cargo clippy --all --all-features --locked -- -D warnings working-directory: ${{ matrix.dir }} diff --git a/.github/workflows/trusted.yaml b/.github/workflows/trusted.yaml index 8ab10de7a..93d4a0741 100644 --- a/.github/workflows/trusted.yaml +++ b/.github/workflows/trusted.yaml @@ -27,7 +27,7 @@ jobs: # see https://github.com/actions-rs/toolchain/issues/126 - name: Setup rust toolchain run: rustup show - - run: cargo build --release + - run: cargo build --release --locked test: runs-on: [self-hosted, Linux, small] container: mobilecoin/rust-sgx-base:latest @@ -37,5 +37,5 @@ jobs: # see https://github.com/actions-rs/toolchain/issues/126 - name: Setup rust toolchain run: rustup show - - run: cargo test --release + - run: cargo test --release --locked diff --git a/.github/workflows/untrusted.yaml b/.github/workflows/untrusted.yaml index a0fc7f028..86becca21 100644 --- a/.github/workflows/untrusted.yaml +++ b/.github/workflows/untrusted.yaml @@ -27,7 +27,7 @@ jobs: # see https://github.com/actions-rs/toolchain/issues/126 - name: Setup rust toolchain run: rustup show - - run: cargo build --release + - run: cargo build --release --locked test: runs-on: [self-hosted, Linux, small] container: mobilecoin/rust-sgx-base:latest @@ -37,4 +37,4 @@ jobs: # see https://github.com/actions-rs/toolchain/issues/126 - name: Setup rust toolchain run: rustup show - - run: cargo test --release + - run: cargo test --release --locked