Fix github workflow
Some checks failed
CI / build (push) Has been cancelled

This commit is contained in:
Fabian Hauser 2025-03-03 16:29:45 +02:00
parent 2a091f3b59
commit f58d32e631
2 changed files with 13 additions and 46 deletions

View file

@ -3,9 +3,14 @@ name: CI
on:
push:
defaults:
run:
shell: nix develop --command bash -c "{0}"
jobs:
build:
runs-on: nix
steps:
- name: Initialize CI
uses: https://git.qo.is/qo.is/actions-nix-init@main
@ -13,20 +18,15 @@ jobs:
token: ${{ secrets.CI_TOKEN }}
lfs: false
- name: Add submodules to nix store to circumvent another nix bug
- name: Setup Attic Cache
env:
CACHE_NAME: fabianhauser
CACHE_REPOSITORY: fabianhauser:dotfiles
SERVER: https://attic.qo.is/
ATTIC_AUTH_TOKEN: ${{ secrets.ATTIC_AUTH_TOKEN }}
run: |
git clone https://git.qo.is/fabianhauser/nix-config-private.git /tmp/private
cd /tmp/private
nix flake prefetch
- name: Setup Attic Watch and Push
uses: ./.github/actions/attic-cache
with:
cache_name: fabianhauser
server: https://attic.qo.is/
attic_auth_token: ${{ secrets.ATTIC_AUTH_TOKEN }}
cache_repository: fabianhauser:dotfiles
attic login "$CACHE_NAME" "$SERVER" "$ATTIC_AUTH_TOKEN"
attic use "$CACHE_REPOSITORY"
- name: Run Checks
shell: nix develop --command bash -c "{0}"
run: nix-fast-build --skip-cached --attic-cache fabianhauser:dotfiles