mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2026-10-12 02:15:13 +00:00
Agent-Logs-Url: https://github.com/grumpycoders/pcsx-redux/sessions/5796c515-8274-4fb0-8fc4-4e0ca6a3ac07 Co-authored-by: nicolasnoble <[email protected]>
36 lines
884 B
YAML
36 lines
884 B
YAML
name: Nix Flake actions
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
nix-matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v30
|
|
- id: set-matrix
|
|
name: Generate Nix Matrix
|
|
run: |
|
|
set -Eeu
|
|
matrix="$(nix eval --json '.#githubActions.matrix')"
|
|
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
|
|
|
|
nix-build:
|
|
name: ${{ matrix.name }} (${{ matrix.system }})
|
|
needs: nix-matrix
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix: ${{fromJSON(needs.nix-matrix.outputs.matrix)}}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v30
|
|
- run: nix build -L '.#${{ matrix.attr }}'
|