Repository navigation
108 lines (95 loc) · 3.17 KB
/
Copy pathci.yml
File metadata and controls
108 lines (95 loc) · 3.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: ci
on:
push:
workflow_dispatch:
jobs:
# Disabled: this job kept failing on a corrupt ~/.stack on the self-hosted runners (see the
# cache comment below). The `tests` job below runs the same suite from a Nix-built binary, so
# nothing is lost; this is only still here in case we want the plain stack path back.
# stack:
# name: stack
# runs-on: [self-hosted, Linux, desktop]
# strategy:
# fail-fast: false
#
# steps:
# - uses: actions/checkout@v6
#
# # actions/cache assumes it is extracting into an empty directory. On a self-hosted
# # runner it lands on top of the ~/.stack the last job left behind, and the merged
# # package db registers libraries whose files aren't there: "There are files missing
# # in the 'aeson-2.2.4.1' package".
# - name: Compute the stack cache key
# id: stack-cache-key
# run: echo "value=${{ runner.os }}-stack-$(sha256sum stack.yaml stack.yaml.lock package.yaml | sha256sum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
#
# - uses: actions/cache@v5
# name: Cache ~/.stack
# with:
# path: ~/.stack
# key: ${{ steps.stack-cache-key.outputs.value }}
#
# - name: Build
# run: |
# nix develop -c stack build --test --bench --no-run-tests --no-run-benchmarks
#
# - name: Test
# run: |
# nix develop -c stack test --test-arguments --print
#
# - name: Upload test logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: test-runs
# path: test_runs/
tests:
name: tests
runs-on: [self-hosted, Linux, desktop]
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Run tests
run: |
TESTS=$(nix build --no-link --print-out-paths .#tests)/bin/cpp-notebook-language-server-test
"$TESTS" --print
- name: Upload test logs
if: always()
uses: actions/upload-artifact@v4
with:
name: test-runs
path: test_runs/
no-gmp:
runs-on: [self-hosted, Linux, desktop]
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:release-25.11
# extra_nix_config: |
# trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
# substituters = https://iohk.cachix.org https://cache.nixos.org/
# - uses: DeterminateSystems/magic-nix-cache-action@main
- name: No GMP
run: |
nix run .#verify-no-gmp
nix:
name: Nix
runs-on: [self-hosted, Linux, desktop]
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:release-25.11
# extra_nix_config: |
# trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
# substituters = https://iohk.cachix.org https://cache.nixos.org/
# - uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build
run: |
nix build