Add CI pipeline
Some checks failed
CI / build (push) Failing after 39s

This commit is contained in:
Fabian Hauser 2025-01-16 13:29:55 +02:00
parent 01c06bad1c
commit faabd215b3

35
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: CI
on:
push:
#env:
# ATTIC_AUTH_TOKEN: ${{ secrets.ATTIC_AUTH_TOKEN }}
jobs:
build:
runs-on: nix
steps:
- name: Initialize CI
uses: https://git.qo.is/qo.is/actions-nix-init@main
with:
token: ${{ secrets.CI_TOKEN }}
lfs: false
#- name: Add submodules to nix store to circumvent another nix bug
# run: |
# git clone https://git.qo.is/qo.is/infrastructure-private.git /tmp/private
# cd /tmp/private
# nix flake prefetch
#- name: Use attic cache
# run: nix run .#cache use
- name: Build
run: |
nix build --max-jobs 12 --cores 12
#nix run .#cache push
- name: Run Checks
run: nix flake check