diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cfa512043..67776ea9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: - name: Compile env: HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }} - run: cargo build --profile dist + run: cargo build --profile dist --locked - name: Compress debuginfo run: objcopy --compress-debug-sections=zlib-gnu target/dist/hq @@ -111,7 +111,7 @@ jobs: - name: Compile env: HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }} - run: cross build --target ${{ matrix.arch }} --no-default-features --features dashboard,highs --profile dist + run: cross build --target ${{ matrix.arch }} --no-default-features --features dashboard,highs --profile dist --locked - name: Prepare archive id: archive @@ -157,7 +157,7 @@ jobs: container: off manylinux: 2_28 command: build - args: --manifest-path crates/pyhq/Cargo.toml --profile dist --out wheels + args: --manifest-path crates/pyhq/Cargo.toml --profile dist --out wheels --locked - name: Install Python wheel run: | python3 -m venv venv @@ -178,7 +178,7 @@ jobs: - name: Compile env: HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }} - run: cargo build + run: cargo build --locked - name: Test Python wheel run: | source venv/bin/activate diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2c3d7b63..8cfe68a6d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,10 +29,10 @@ jobs: run: python scripts/check_package_versions.py - name: Build - run: cargo build --workspace --all-targets + run: cargo build --workspace --all-targets --locked - name: Test - run: cargo test --workspace + run: cargo test --workspace --locked - name: Setup Python uses: actions/setup-python@v2 @@ -46,7 +46,7 @@ jobs: - name: Build Python binding run: | - maturin build --manifest-path crates/pyhq/Cargo.toml --out wheels + maturin build --manifest-path crates/pyhq/Cargo.toml --out wheels --locked WHEEL=`realpath wheels/*.whl` python -m pip install $WHEEL[all] @@ -108,7 +108,7 @@ jobs: key: ${{ matrix.os }} - name: Build HyperQueue - run: cargo build --no-default-features --features dashboard,highs + run: cargo build --no-default-features --features dashboard,highs --locked - name: Run HyperQueue run: ./target/debug/hq --version @@ -126,7 +126,7 @@ jobs: - name: Build Python binding run: | - maturin build --manifest-path crates/pyhq/Cargo.toml --out wheels + maturin build --manifest-path crates/pyhq/Cargo.toml --out wheels --locked WHEEL=`realpath wheels/*.whl` python -m pip install $WHEEL[all] @@ -145,7 +145,7 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Build HyperQueue with the zero worker mode - run: RUSTFLAGS="--cfg zero_worker" cargo build --workspace + run: RUSTFLAGS="--cfg zero_worker" cargo build --workspace --locked - name: Build HyperQueue with all features enabled - run: cargo build --all-features --workspace + run: cargo build --all-features --workspace --locked diff --git a/Cargo.lock b/Cargo.lock index 406da2516..cd65c5189 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1130,7 +1130,7 @@ checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424" [[package]] name = "hyperqueue" -version = "0.26.0" +version = "0.26.1" dependencies = [ "anyhow", "bincode", @@ -1851,7 +1851,7 @@ dependencies = [ [[package]] name = "pyhq" -version = "0.26.0" +version = "0.26.1" dependencies = [ "anyhow", "hyperqueue",