Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]

Expand Down Expand Up @@ -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

Expand All @@ -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]

Expand 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
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading