Skip to content

Commit

Permalink
Simplify a few CI actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jan 3, 2025
1 parent ab01664 commit 351f0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
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

0 comments on commit 351f0a3

Please sign in to comment.