Skip to content

Commit 5822c5b

Browse files
committed
Make Nix GHC 9.2.3 CI build run only manually
There is no cache for it in Hydra, and there is no cache for /nix/store in this CI setup. It takes almost 1.5 hours to build it. Will run it manually on demand.
1 parent 231f624 commit 5822c5b

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

.github/workflows/nix-manual.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Nix Manual CI
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
withHLS:
7+
description: 'Build HLS'
8+
required: true
9+
default: 'false' # HLS fails to build against GHC 9.2.3 at the moment, turning it off.
10+
11+
jobs:
12+
nix-build-and-test-ghc-9_2_3:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macOS-latest]
16+
17+
runs-on: ${{ matrix.os }}
18+
19+
steps:
20+
- uses: actions/checkout@v2.4.0
21+
22+
- name: Install Nix
23+
uses: cachix/install-nix-action@v15
24+
with:
25+
extra_nix_config: |
26+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
27+
system-features = nixos-test benchmark big-parallel kvm
28+
29+
# nix-build includes running tests for the Haskell library too.
30+
- run: |
31+
nix-build --argstr ghcVersion ghc923 --arg withHLS ${{ github.event.inputs.withHLS }} -o result-ghc-9.2.3

.github/workflows/nix.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,3 @@ jobs:
2626
2727
# nix-build includes running tests for the Haskell library too
2828
- run: nix-build
29-
30-
nix-build-and-test-ghc-9_2_3:
31-
strategy:
32-
matrix:
33-
os: [ubuntu-latest, macOS-latest]
34-
35-
runs-on: ${{ matrix.os }}
36-
37-
steps:
38-
- uses: actions/checkout@v2.4.0
39-
40-
- name: Install Nix
41-
uses: cachix/install-nix-action@v15
42-
with:
43-
extra_nix_config: |
44-
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
45-
system-features = nixos-test benchmark big-parallel kvm
46-
47-
# nix-build includes running tests for the Haskell library too.
48-
# HLS fails to build against GHC 9.2.3 at the moment, turning it off.
49-
- run: |
50-
nix-build --argstr ghcVersion ghc923 --arg withHLS false -o result-ghc-9.2.3

0 commit comments

Comments
 (0)