Skip to content

Commit

Permalink
Update example matrix in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Oct 13, 2024
1 parent e021eb0 commit ede19ed
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,38 @@ Here's a simplified example from the test and release workflow for
```yaml
jobs:
release:
name: Release - ${{ matrix.platform.release_for }}
name: Release - ${{ matrix.platform.os-name }}
strategy:
matrix:
platform:
- os_name: Windows-x86_64
os: windows-latest
target: x86_64-pc-windows-msvc
- os-name: FreeBSD-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-freebsd
skip_tests: true
- os_name: macOS-x86_64
os: macOS-latest

- os-name: Linux-x86_64
runs-on: ubuntu-20.04
target: x86_64-unknown-linux-musl

- os-name: Linux-aarch64
runs-on: ubuntu-20.04
target: aarch64-unknown-linux-musl

- os-name: Linux-riscv64
runs-on: ubuntu-20.04
target: riscv64gc-unknown-linux-gnu

- os-name: Windows-x86_64
runs-on: windows-latest
target: x86_64-pc-windows-msvc

- os-name: macOS-x86_64
runs-on: macOS-latest
target: x86_64-apple-darwin

# more targets here ...
# more targets here ...

runs-on: ${{ matrix.platform.os }}
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down

0 comments on commit ede19ed

Please sign in to comment.