Skip to content

feat: Prepare repository (part 2) #4

feat: Prepare repository (part 2)

feat: Prepare repository (part 2) #4

Workflow file for this run

name: Tests
on:
push:
branches:
- master
pull_request:
jobs:
configure:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Build matrix json
uses: workflow/nix-shell-action@v3
with:
script: |
node ./tools/ci/generate_matrix.js
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./tools/ci/workflow-matrix.json)" >> $GITHUB_OUTPUT
build:
name: Build & Run
needs: configure
strategy:
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
runs-on: ${{ matrix.include.runner }}
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Build then run
uses: workflow/nix-shell-action@v3
with:
script: |
bazel run //:filc