Jack O'Sullivan
42508b14fc
Some checks failed
CI / Check, build and cache Nix flake (push) Failing after 47s
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
check:
|
|
name: Check, build and cache Nix flake
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
with:
|
|
# Gitea will supply a token in GITHUB_TOKEN, which this action will
|
|
# try to pass to Nix when downloading from GitHub
|
|
github_access_token: ${{ secrets.GH_PULL_TOKEN }}
|
|
extra_nix_config: |
|
|
# Make sure we're using sandbox
|
|
sandbox-fallback = false
|
|
# Big C++ projects fill up memory...
|
|
cores = 6
|
|
|
|
extra-substituters = https://nix-cache.nul.ie/main
|
|
extra-trusted-public-keys = main:mMChkG8LwXrFirVfudqjSHasK1jV31OVElYD3eImYl8=
|
|
|
|
# - name: Check flake
|
|
# run: nix flake check --no-build
|
|
- name: Build the world
|
|
id: build
|
|
run: |
|
|
# path=$(nix build --no-link .#ci.x86_64-linux --json | jq -r .[0].outputs.out)
|
|
nix build --no-link .#windowtolayer --json
|
|
path=$(nix build --no-link .#windowtolayer --json | jq -r .[0].outputs.out)
|
|
echo "path=$path" >> "$GITHUB_OUTPUT"
|
|
cat "$GITHUB_OUTPUT"
|
|
|
|
- name: Push to cache
|
|
run: |
|
|
ci/push-to-cache.sh "${{ steps.build.outputs.path }}"
|