Skip to content

Commit

Permalink
Merge pull request #129 from jacek-kurlit/126-added-x86_64-and-aarch6…
Browse files Browse the repository at this point in the history
…4-targets-for-merge-pipeline-test

updated test to use cross for aarch64
  • Loading branch information
jacek-kurlit authored Jan 25, 2025
2 parents 20df352 + 1983dec commit 33611b0
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions .github/workflows/on_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,45 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
fail-fast: false
include:
- build: linux
os: ubuntu-latest
use-cross: false
target: x86_64-unknown-linux-gnu

- build: linux-aarch64
os: ubuntu-latest
use-cross: true
target: aarch64-unknown-linux-gnu

- build: macos
os: macos-latest
use-cross: false
target: x86_64-apple-darwin

- build: aarch64-macos
os: macos-latest
use-cross: false
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Install cross
if: matrix.use-cross
uses: taiki-e/install-action@v2
with:
tool: cross

- uses: moonrepo/setup-rust@v1
with:
targets: ${{ matrix.target }}
bins: cargo-make, cargo-nextest
- name: Run tests
run: cargo make ci-test

- name: Run cargo nextest (without cross)
if: "!matrix.use-cross"
run: cargo nextest run --release --locked --target ${{ matrix.target }}

- name: Run cross test (cross)
if: "matrix.use-cross"
run: cross test --release --locked --target ${{ matrix.target }}

0 comments on commit 33611b0

Please # to comment.