website/.forgejo/workflows/main.yml
Evelyn Alicke 39e5b8b61f
All checks were successful
CI / build-nix (push) Successful in 3m33s
move ci to forgejo
2024-09-28 10:41:22 +02:00

35 lines
1 KiB
YAML

name: CI
on:
pull_request:
push:
jobs:
build-nix:
runs-on: ubuntu-latest
steps:
- run: apt-get update -y && apt-get install sudo
- uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@V28
with:
github_access_token: ${{ secrets.GH_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GH_TOKEN }}
allow-import-from-derivation = true
auto-optimise-store = true
experimental-features = nix-command flakes
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
- name: Build with cachix
uses: cachix/cachix-action@v15
env:
USER: $(whoami)
with:
name: hakyll-nix-template
- run: nix build --accept-flake-config
# TODO: Push artifact?