diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9198830 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 +