Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify a few CI actions #797

Merged
merged 1 commit into from
Jan 3, 2025
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
9 changes: 2 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ jobs:
key: x64

- name: Compile
uses: actions-rs/cargo@v1
env:
HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }}
with:
command: build
args: --profile dist
run: cargo build --profile dist

- name: Compress debuginfo
run: objcopy --compress-debug-sections=zlib-gnu target/dist/hq
Expand Down Expand Up @@ -162,11 +159,9 @@ jobs:
cat version-expected.txt
cmp --silent version-expected.txt version.txt
- name: Compile
uses: actions-rs/cargo@v1
env:
HQ_BUILD_VERSION: ${{ needs.set-env.outputs.version }}
with:
command: build
run: cargo build
- name: Test Python wheel
run: |
source venv/bin/activate
Expand Down
20 changes: 4 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@ jobs:
run: python scripts/check_package_versions.py

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --all --all-targets
run: cargo build --workspace --all-targets

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all
run: cargo test --workspace

- name: Setup Python
uses: actions/setup-python@v2
Expand Down Expand Up @@ -72,16 +66,10 @@ jobs:
path: artifacts.tar

- name: Lint Rust
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all -- -D warnings
run: cargo clippy --workspace -- -D warnings

- name: Check Rust formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Lint Python
run: python -m ruff check
Expand Down
Loading