Skip to content

Add nixfmt, restructure flake, get checks working #514

Add nixfmt, restructure flake, get checks working

Add nixfmt, restructure flake, get checks working #514

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
check:
runs-on: ${{ matrix.runs-on.labels }}
strategy:
matrix:
runs-on:
- labels: [ubuntu-latest]
system: x86_64-linux
# TODO: Seems github ran out of capacity. they're queuing forever
# - labels: [ubuntu-latest-arm]
# system: aarch64-linux
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: DeterminateSystems/nix-installer-action@7993355175c2765e5733dae74f3e0786fe0e5c4f # v12
- uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
- run: nix flake check -L --system ${{ matrix.runs-on.system }}
publish:
if: github.event_name == 'push'
needs: [check]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: DeterminateSystems/flakehub-push@8da9e38b7e77f2b0a8aa08a22e57cc5c6316ea72 #v5
with:
name: NixOS/amis
rolling: true
visibility: public