From d1fbf8268250744dba0d8a15741d1d160f21edf4 Mon Sep 17 00:00:00 2001 From: Dmitry Kashitsyn Date: Thu, 16 Feb 2023 14:25:23 +0600 Subject: [PATCH 1/2] Add --frozen --locked to cargo invokations --- .github/workflows/base_checks.yaml | 2 +- .github/workflows/release.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base_checks.yaml b/.github/workflows/base_checks.yaml index 7805d888c..3693d6752 100644 --- a/.github/workflows/base_checks.yaml +++ b/.github/workflows/base_checks.yaml @@ -31,4 +31,4 @@ jobs: run: rustup target list --installed - name: Check all features compilation - run: cargo check --verbose --all-features + run: cargo check --verbose --all-features --frozen --locked diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32275f231..abd0155d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: run: rustup target list --installed - name: Check all features compilation - run: cargo check --verbose --all-features + run: cargo check --verbose --all-features --frozen --locked - name: Run all tests - run: cargo test --all-features + run: cargo test --all-features --frozen --locked native-linux: needs: checks-and-tests @@ -86,7 +86,7 @@ jobs: run: rustup target list --installed - name: Build optimized binary - run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose + run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose --frozen --locked - name: Set artifact name env: @@ -159,7 +159,7 @@ jobs: run: rustup target list --installed - name: Build optimized binary - run: cargo build --release --verbose + run: cargo build --release --verbose --frozen --locked - uses: actions/upload-artifact@v3 with: From 58590f34eefccec97fb1d05ede1af11835b8792c Mon Sep 17 00:00:00 2001 From: Dmitry Kashitsyn Date: Thu, 16 Feb 2023 16:06:11 +0600 Subject: [PATCH 2/2] Remove --frozen as too strict --- .github/workflows/base_checks.yaml | 2 +- .github/workflows/release.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base_checks.yaml b/.github/workflows/base_checks.yaml index 3693d6752..fbf7539a9 100644 --- a/.github/workflows/base_checks.yaml +++ b/.github/workflows/base_checks.yaml @@ -31,4 +31,4 @@ jobs: run: rustup target list --installed - name: Check all features compilation - run: cargo check --verbose --all-features --frozen --locked + run: cargo check --verbose --all-features --locked diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abd0155d8..63c460de8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,10 +33,10 @@ jobs: run: rustup target list --installed - name: Check all features compilation - run: cargo check --verbose --all-features --frozen --locked + run: cargo check --verbose --all-features --locked - name: Run all tests - run: cargo test --all-features --frozen --locked + run: cargo test --all-features --locked native-linux: needs: checks-and-tests @@ -86,7 +86,7 @@ jobs: run: rustup target list --installed - name: Build optimized binary - run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose --frozen --locked + run: CARGO_PROFILE_RELEASE_LTO=true RUSTFLAGS="-C codegen-units=1" cargo build --release --target ${{ matrix.target }} --verbose --locked - name: Set artifact name env: @@ -159,7 +159,7 @@ jobs: run: rustup target list --installed - name: Build optimized binary - run: cargo build --release --verbose --frozen --locked + run: cargo build --release --verbose --locked - uses: actions/upload-artifact@v3 with: