Skip to content

Commit

Permalink
Test all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJacobs committed Nov 7, 2023
1 parent 2531d30 commit c4b536c
Showing 1 changed file with 9 additions and 28 deletions.
37 changes: 9 additions & 28 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,22 @@ name: CI
on: [push, pull_request]

jobs:
linux:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- name: Rust formatting
step: cargo-fmt-check
- name: Rust linting
step: cargo-clippy
- name: Rust tests
step: cargo-test

strategy:
matrix:
os: ["ubuntu-latest"]
target: ["x86_64-pc-windows-gnu", "x86_64-unknown-linux-gnu"]
step: ["cargo-fmt-check", "cargo-clippy", "cargo-test"]
ci:
name: ${{ matrix.job.target }} (${{ matrix.job.os }})
runs-on: ${{ matrix.job.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup environment
run: ./setup

- name: ${{ matrix.name }}
- name: ${{ matrix.step }}
env:
STEP: ${{ matrix.step }}
run: ./ci "${STEP}"

check_success:
if: always()

needs:
- linux

runs-on: ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit c4b536c

Please sign in to comment.