-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (97 loc) · 3.07 KB
/
Test.yml
File metadata and controls
116 lines (97 loc) · 3.07 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
109
110
111
112
113
114
name: Test Hadrian GHC-in-GHCi
on: push
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
jobs:
# pre-cleanup:
# runs-on: ubuntu-latest
# steps:
# - name: CheckSpace
# shell: bash
# run: df -h
# - name: Checkout
# uses: actions/checkout@v4
# - name: Free Disk Space (Ubuntu)
# uses: jlumbroso/free-disk-space@main
# with:
# # this might remove tools that are actually needed,
# # if set to "true" but frees about 6 GB
# tool-cache: false
# # all of these default to true, but feel free to set to
# # "false" if necessary for your workflow
# android: true
# dotnet: true
# haskell: false
# large-packages: true
# docker-images: false
# swap-storage: true
hadrian-build-build:
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
# needs: [pre-cleanup]
strategy:
fail-fast: true
matrix:
# You can add multiple configurations here if needed
config: [default]
# container:
# # image: soulomoon/ghc-build-env:latest
# # image: registry.gitlab.haskell.org/ghc/ci-images/aarch64-linux-deb12:latest
# image: soulomoon/ci-images-x86_64-linux-deb12:latest
# options: --user root
env:
# GHC_FLAGS: -Werror
# BIGNUM_BACKEND: gmp
BIN_DIST_NAME: ghc-aarch64-linux-deb10-validate
BUILD_FLAVOUR: validate
# CONFIGURE_ARGS: --enable-strict-ghc-toolchain-check
# INSTALL_CONFIGURE_ARGS: --enable-strict-ghc-toolchain-check
TEST_ENV: aarch64-linux-deb10-validate
defaults:
run:
shell: bash
steps:
- uses: wimpysworld/nothing-but-nix@main
with:
hatchet-protocol: 'cleave'
witness-carnage: false # Default: false
root-safe-haven: '54000'
- uses: DeterminateSystems/nix-installer-action@main
# - uses: DeterminateSystems/magic-nix-cache-action@main
# - uses: DeterminateSystems/flake-checker-action@main
- name: Checkout
uses: actions/checkout@v4
- name: setup git
run: |
git config user.email "ghc-ci@gitlab-haskell.org"
git config user.name "GHC GitLab CI"
- uses: nicknovitski/nix-develop@main
with:
arguments: "git+https://github.com/soulomoon/ghc.nix#llvm --accept-flake-config"
- name: Hadrian setup
shell: bash
run: |
. .gitlab/ci.sh setup
- name: Hadrian configure
shell: bash
run: . .gitlab/ci.sh configure
- name: CheckSpace
shell: bash
shell: bash
run: df -h
- name: Hadrian build
shell: bash
run: . .gitlab/ci.sh build_hadrian
- name: Hadrian test
shell: bash
run: . .gitlab/ci.sh test_hadrian
- name: Upload config.log
if: always()
uses: actions/upload-artifact@v4
with:
name: config-log
path: _build/stage0/libraries/time/build/config.log