ci: garnix -> gha for 12343894th time #133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build outputs (${{ matrix.system }}) | |
strategy: | |
matrix: | |
include: | |
- system: x86_64-linux | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@v27 | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v15 | |
with: | |
name: getchoo | |
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
- name: Run build | |
env: | |
SYSTEM: ${{ matrix.system }} | |
run: | | |
nix run \ | |
github:Mic92/nix-fast-build -- \ | |
--no-nom \ | |
--skip-cached \ | |
--systems "$SYSTEM" \ | |
--option allow-import-from-derivation false \ | |
--flake '.#hydraJobs' | |
build-gate: | |
name: Build gate | |
if: ${{ always() }} | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Exit with error | |
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
run: exit 1 |