mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
I don't know what these are but I hope reverting to what cachix/install-nix-action's documentation recommends will fix the errors we're getting with presumably old Nix on new Ubuntu GitHub Actions runners.
27 lines
706 B
YAML
27 lines
706 B
YAML
name: Nix
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: Nix Flake - Linux
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Install Nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Clone project
|
|
uses: actions/checkout@v4
|
|
- name: Build
|
|
# "nix build" builds with full optimization and includes a profiling
|
|
# build, so just the build of xmonad-contrib itself takes 3 minutes.
|
|
# As a workaround, we invoke cabal manually here.
|
|
run: |
|
|
nix develop -c cabal v2-update -O0 -j
|
|
nix develop -c cabal v2-build -O0 -j
|