Skip to content

Commit

Permalink
add nextest arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheson committed Jul 29, 2024
1 parent 9a341a9 commit 55d5bb6
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ jobs:
target: ${{ matrix.target }}

- name: Install nextest
if: matrix.target != 'aarch64-unknown-linux-musl'
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Install nextest for ARM
if: matrix.target == 'aarch64-unknown-linux-musl'
run: curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Run tests
run: cargo nextest run --profile=ci

Expand All @@ -101,8 +106,15 @@ jobs:
--token ${{ secrets.TRUNK_STAGING_ORG_API_TOKEN }}
build:
name: Unit Tests
runs-on: public-amd64-small
strategy:
matrix:
include:
- target: x86_64-unknown-linux-musl
runs-on: public-amd64-small
- target: aarch64-unknown-linux-musl
runs-on: public-arm64-medium
name: Unit Tests for ${{ matrix.target }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4

Expand All @@ -113,8 +125,13 @@ jobs:
run: cargo build -q --all

- name: Install nextest
if: matrix.target != 'aarch64-unknown-linux-musl'
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Install nextest for ARM
if: matrix.target == 'aarch64-unknown-linux-musl'
run: curl -LsSf https://get.nexte.st/latest/linux-arm | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Run tests
run: cargo nextest run --profile=ci

Expand All @@ -125,6 +142,7 @@ jobs:
junit-paths: ${{ github.workspace }}/target/**/*junit.xml
org-slug: trunk
token: ${{ secrets.TRUNK_PROD_ORG_API_TOKEN }}

- name: Upload results cli release built from source
if: "!cancelled()"
env:
Expand Down

0 comments on commit 55d5bb6

Please sign in to comment.