Skip to content

Commit

Permalink
Merge pull request #13 from mobusoperandi/ci-matrix
Browse files Browse the repository at this point in the history
build: ci overhaul
  • Loading branch information
Echolinq authored Oct 22, 2023
2 parents 32b0541 + 187cb6b commit 936967f
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,11 @@ on:
- pull_request

jobs:
build:
test:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
platform: [ubuntu-latest]
include:
- target: x86_64-apple-darwin
platform: macos-latest
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: cache
uses: FrancisRussell/[email protected]
with:
command: cache
- name: toolchain
uses: FrancisRussell/[email protected]
with:
command: install-rustup
toolchain: stable
target: ${{ matrix.target }}
- name: build
uses: FrancisRussell/[email protected]
with:
command: cargo build
use-cross: true
args: --target=${{ matrix.target }}

test:
runs-on: ubuntu-latest
runner: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: cache
Expand All @@ -47,7 +19,6 @@ jobs:
with:
command: install-rustup
toolchain: stable
target: ${{ matrix.target }}
- name: install Nix
uses: cachix/install-nix-action@v23
- name: test
Expand Down

0 comments on commit 936967f

Please sign in to comment.