nix broken on latest channel update Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
name: Test
|
|
on:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "30 2 * * *"
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v31
|
|
with:
|
|
# TODO: Adjust uninstall to not need channel
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
- run: nix build --show-trace .#docs-jsonModuleMaintainers
|
|
- run: nix fmt -- --ci
|
|
- run: nix run .#home-manager -- init --switch
|
|
# FIXME: nix broken on darwin on unstable
|
|
if: matrix.os != 'macos-latest'
|
|
- run: yes | nix run . -- uninstall
|
|
# FIXME: nix broken on darwin on unstable
|
|
if: matrix.os != 'macos-latest'
|
|
- name: Run tests
|
|
run: nix build -j auto --show-trace --option allow-import-from-derivation false --reference-lock-file flake.lock "./tests#test-all-no-big"
|
|
env:
|
|
GC_INITIAL_HEAP_SIZE: 4294967296
|
|
- name: Run tests (with IFD)
|
|
run: nix build -j auto --show-trace --reference-lock-file flake.lock "./tests#test-all-no-big"
|
|
env:
|
|
GC_INITIAL_HEAP_SIZE: 4294967296
|