parent
01c06bad1c
commit
faabd215b3
1 changed files with 35 additions and 0 deletions
35
.github/workflows/ci.yml
vendored
Normal file
35
.github/workflows/ci.yml
vendored
Normal 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue