flakes/.github/workflows/cachix.yml
LavaDesu fe8d26a860
workflows/cachix: some more advanced waiting
i hope this works i have no idea why git-crypt does this it also happens
on local computers sometimes jalsdfjasoigrjoi
2025-05-23 01:31:42 +10:00

59 lines
1.5 KiB
YAML

name: CI
on:
push:
workflow_dispatch:
jobs:
check:
name: Check flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Unlock secrets
uses: sliteteam/github-action-git-crypt-unlock@1.2.0
env:
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY }}
- name: Wait..
run:
for s in {1..10}; do
nix eval .#checks.x86_64-linux.is_dirty;
if [ $? -eq 0 ]; then
break;
else
if [ $s -eq 10 ]; then
exit 1
fi
sleep 5;
fi
done
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v14
with:
name: lava
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix flake check --keep-going --verbose
build:
name: Build linux-lava for x86_64-linux
runs-on: ubuntu-latest
steps:
# credits to https://github.com/easimon/maximize-build-space/issues/45
- name: Remove unneeded packages to maximise build space
shell: bash
run: |
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
df -h
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v31
- uses: cachix/cachix-action@v14
with:
name: lava
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build -L .#linux-lava