-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (100 loc) · 3.14 KB
/
ci.yml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
name: codedown-languages
on:
pull_request:
push:
workflow_dispatch:
jobs:
verify-nixpkgs-revs:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: verify-default-nix.sh
if: "!contains(github.event.head_commit.message, 'noci')"
run: ./.aliases/verify-default-nix
build-ui-metadata:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build .#ui_metadata_farm
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
nix build .#ui_metadata_farm
build-sample-environments:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Build .#sample_environments_farm
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
nix build .#sample_environments_farm
test:
name: ${{matrix.suite.name}} (${{matrix.suite.flags}})
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
suite:
- name: bash
- name: clojure
- name: coq
- name: cpp
- name: go
- name: haskell
flags: "-f haskell-ghc92"
- name: haskell
flags: "-f haskell-ghc94"
- name: haskell
flags: "-f haskell-ghc96"
- name: haskell
flags: "-f haskell-ghc98"
- name: julia
flags: "-f julia_19"
- name: julia
flags: "-f julia_110"
- name: octave
- name: postgres
- name: python
- name: r
- name: ruby
- name: rust
- name: searchers
- name: zsh
- name: spellchecker
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build tests
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
cd tests
export NIX_PATH=nixpkgs=$(nix run .#nixpkgsPath)
export PATH=$(nix build --no-link .#stack.x86_64-linux --json | jq -r '.[0].outputs.out')/bin:$PATH
echo "Got path: $PATH"
stack build --nix --no-nix-pure
- name: Run tests
if: "!contains(github.event.head_commit.message, 'noci')"
run: |
cd tests
export TEST_ROOT=$(pwd)/test_root
echo "Got TEST_ROOT: $TEST_ROOT"
echo TEST_ROOT="$TEST_ROOT" >> $GITHUB_ENV
export NIX_PATH=nixpkgs=$(nix run .#nixpkgsPath)
export PATH=$(nix build --no-link .#stack.x86_64-linux --json | jq -r '.[0].outputs.out')/bin:$PATH
stack run --nix --no-nix-pure -- \
--print-failures \
--fixed-root "$TEST_ROOT" \
--markdown-summary "$GITHUB_STEP_SUMMARY" \
--${{matrix.suite.name}} ${{matrix.suite.flags}}
- name: Upload test artifacts
if: ${{ always() }}
continue-on-error: true
run: |
if [[ -n "$TEST_ROOT" ]]; then
echo "Uploading \"$TEST_ROOT/\""
rsync \
-e "ssh -F /secrets/ci_ssh_config" \
-azW --progress --mkpath \
"$TEST_ROOT/" \
tester@desktop1:"/home/tester/all_test_runs/languages_${{github.workflow}}_${{github.run_number}}/${{matrix.suite.name}}-${{matrix.suite.flags}}"
fi