diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 277e0808..937e57cc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -55,6 +55,11 @@ jobs: default: true components: rustfmt, clippy + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: cargo +${{ matrix.msrv }} check uses: actions-rs/cargo@v1 with: @@ -97,5 +102,10 @@ jobs: toolchain: nightly args: -Zminimal-versions + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Test the code run: python3 ./bin/test --rust-version stable --test all diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml index ad27b6cb..45c6995d 100644 --- a/.github/workflows/schedule.yml +++ b/.github/workflows/schedule.yml @@ -50,5 +50,10 @@ jobs: default: true components: rustfmt, clippy + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Test the code run: python3 ./bin/test --rust-version nightly --test all --extra-clippy-flags "-A clippy::arc_with_non_send_sync" # extra clippy args since lint is nightly only for now diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 163c5041..61f57fda 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,6 +53,11 @@ jobs: override: true components: rustfmt, clippy + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Test the code run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all @@ -80,6 +85,11 @@ jobs: override: true components: rustfmt, clippy + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Test the code run: python3 ./bin/test --rust-version ${{matrix.rust}} --test all @@ -104,6 +114,11 @@ jobs: run: | cargo install cross --locked + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Test the code uses: actions-rs/cargo@v1 with: @@ -128,6 +143,11 @@ jobs: mingw64/mingw-w64-x86_64-pkg-config \ mingw64/mingw-w64-x86_64-rust + - name: cargo generate-lockfile + # enable this ci template to run regardless of whether the lockfile is checked in or not + if: hashFiles('Cargo.lock') == '' + run: cargo generate-lockfile + - name: Run the tests shell: msys2 {0} run: |