Skip to content

Commit

Permalink
Add build job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruczgy committed Jan 24, 2025
1 parent 884c723 commit 0ec7bef
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check
nix-build:
name: Nix Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v15
with:
name: x1e-nixos-config
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
# Based on: https://carlosbecker.com/posts/github-actions-disk-space/
- run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo docker builder prune -a
- run: |
nix build .#nixosConfigurations.iso.config.system.build.isoImage
sha256sum result/iso/cd.iso

0 comments on commit 0ec7bef

Please sign in to comment.