Skip to content

Commit

Permalink
workflows: paxmark: add cargo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Jul 17, 2024
1 parent 3595270 commit 7e69813
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/paxmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
matrix:
platform:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
runs-on: ubuntu-latest
name: paxmark build (${{ matrix.platform }})
defaults:
Expand All @@ -31,7 +30,28 @@ jobs:
rustup default stable
- run: |
rustup target add --toolchain stable "${{ matrix.platform }}"
- run: |
sudo apt update && sudo apt -y install gcc-aarch64-linux-gnu
if: ${{ matrix.platform }} != "x86_64-unknown-linux-gnu"
- run: cargo build --target "${{ matrix.platform }}" --bin paxmark
test:
strategy:
fail-fast: false
matrix:
platform:
- x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
name: paxmark test (${{ matrix.platform }})
defaults:
run:
shell: bash
steps:
- uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- run: |
rustup update --no-self-update stable
rustup default stable
- run: |
rustup target add --toolchain stable "${{ matrix.platform }}"
- run: cargo test --target "${{ matrix.platform }}"

0 comments on commit 7e69813

Please sign in to comment.