1
1
name : Integration tests
2
2
3
3
on :
4
- pull_request :
5
4
push :
6
- branches :
7
- - master
8
- - stable
9
- - rc/**
10
5
tags :
11
6
- ' **'
12
7
workflow_dispatch :
13
8
14
- # Stack will use the value of the GH_TOKEN environment variable to authenticate
15
- # its requests of the GitHub REST API, providing a higher request rate limit.
16
- env :
17
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18
-
19
9
# As of 15 March 2025, ubuntu-latest and windows-latest come with Stack 3.3.1
20
10
# and GHC 9.12.1. However, macos-13 and macos-latest do not come with Haskell
21
11
# tools. windows-latest comes with NSIS 3.10, for which the default value of the
@@ -32,19 +22,12 @@ jobs:
32
22
fail-fast : false
33
23
matrix :
34
24
include :
25
+ - os : ubuntu-22.04-arm
26
+ release-args : " --alpine --stack-args --docker-stack-exe=image"
27
+ cache-bust : " 2025-02-07b"
35
28
- os : ubuntu-latest
36
29
release-args : " --alpine"
37
30
cache-bust : " 2024-05-17"
38
- # On public preview since 16 January 2025
39
- - os : ubuntu-24.04-arm
40
- # Stack's project-level configuration (stack.yaml) specifies the
41
- # multi-architecture (including Linux/Aarch64) Docker image published
42
- # by Oliver Benz (@benz0li, on GitHub). That image comes with
43
- # Stack 3.3.1. (Note that the online documentation for
44
- # '--docker-stack-exe image' specifies that the host Stack and image
45
- # Stack must have the same version number.)
46
- release-args : " --alpine --stack-args --docker-stack-exe=image"
47
- cache-bust : " 2025-02-07b"
48
31
- os : windows-latest
49
32
release-args : " "
50
33
cache-bust : " 2025-04-06"
78
61
run : |
79
62
set -ex
80
63
81
- if [[ "${{ matrix.os }}" == "ubuntu-24 .04-arm" || "${{ matrix.os }}" == "macos-13" || "${{ matrix.os }}" == "macos-latest" ]]
64
+ if [[ "${{ matrix.os }}" == "ubuntu-22 .04-arm" || "${{ matrix.os }}" == "macos-13" || "${{ matrix.os }}" == "macos-latest" ]]
82
65
then
83
66
# ubuntu-24.04-arm, macos-13 and macos-latest do not include Haskell
84
67
# tools as at 2025-03-15.
@@ -157,8 +140,7 @@ jobs:
157
140
df -h
158
141
159
142
# Skip checks for Linux/AArch64, given checks for Linux/x86-64
160
- if [[ "${{ matrix.os }}" != "ubuntu-24.04-arm" ]]
161
- then
143
+ if [[ "${{ matrix.os }}" != "ubuntu-22.04-arm" ]] ; then
162
144
# Do this in the same step as installing deps to get relevant env var modifications
163
145
stack etc/scripts/release.hs check ${{ matrix.release-args }}
164
146
fi
@@ -179,6 +161,45 @@ jobs:
179
161
name : ${{ runner.os }}-${{ runner.arch }}
180
162
path : _release/stack-*
181
163
164
+ freebsd-x64 :
165
+ name : FreeBSD X64
166
+ runs-on : [self-hosted, FreeBSD, X64]
167
+ steps :
168
+ - name : Checkout code
169
+ uses : actions/checkout@v4
170
+ with :
171
+ submodules : ' true'
172
+
173
+ - name : Install prerequisites
174
+ run : |
175
+ sudo sed -i.bak -e 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
176
+ sudo pkg install -y ghc gcc curl git bash misc/compat10x misc/compat11x misc/compat12x gmake libiconv devel/stack
177
+ sudo tzsetup Etc/GMT
178
+ sudo adjkerntz -a
179
+
180
+ - uses : haskell/ghcup-setup@v1
181
+
182
+ - name : Install stack ghcup hook
183
+ run : |
184
+ set -eux
185
+ ghcup install stack --set latest
186
+ export STACK_ROOT="${GITHUB_WORKSPACE}"/.stack
187
+ mkdir -p $STACK_ROOT/hooks/
188
+ curl https://raw.githubusercontent.com/haskell/ghcup-hs/master/scripts/hooks/stack/ghc-install.sh > $STACK_ROOT/hooks/ghc-install.sh
189
+ chmod +x $STACK_ROOT/hooks/ghc-install.sh
190
+ stack config set system-ghc false --global
191
+
192
+ - name : Run build
193
+ run : |
194
+ export STACK_ROOT="${GITHUB_WORKSPACE}"/.stack
195
+ export CABAL_DIR="$GITHUB_WORKSPACE/cabal"
196
+ stack etc/scripts/release.hs build --allow-dirty
197
+ - name : Upload bindist
198
+ uses : actions/upload-artifact@v4
199
+ with :
200
+ name : FreeBSD-X64
201
+ path : _release/stack-*
202
+
182
203
github-release :
183
204
name : Create GitHub release
184
205
permissions :
@@ -213,21 +234,21 @@ jobs:
213
234
with :
214
235
name : Linux-ARM64
215
236
path : _release
237
+ - name : Download FreeBSD/X64 artifact
238
+ uses : actions/download-artifact@v4
239
+ with :
240
+ name : FreeBSD-X64
241
+ path : _release
216
242
- name : Hash and sign assets
217
243
shell : bash
218
- env :
219
- RELEASE_SIGNING_KEY : ${{ secrets.RELEASE_SIGNING_KEY }}
220
244
run : |
221
245
set -e
222
- echo "$RELEASE_SIGNING_KEY"|gpg --import
223
246
cd _release
224
247
for asset in *; do
225
248
shasum -a 256 "$asset" >"$asset.sha256"
226
- gpg --digest-algo=sha512 --detach-sig --armor -u 0x575159689BEFB442 "$asset"
227
249
done
228
250
- name : Create GitHub release (final)
229
251
id : github_release_final
230
- if : " !startsWith(github.ref, 'refs/tags/rc/')"
231
252
232
253
env :
233
254
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -244,19 +265,7 @@ jobs:
244
265
[INSERT CONTRIBUTORS]
245
266
draft : true
246
267
prerelease : false
247
- - name : Create GitHub release (release candidate)
248
- id : github_release_rc
249
- if : " startsWith(github.ref, 'refs/tags/rc/')"
250
-
251
- env :
252
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
253
- with :
254
- body : |
255
- **Changes since v[INSERT PREVIOUS VERSION]:**
256
268
257
- [INSERT CHANGELOG]
258
- draft : true
259
- prerelease : true
260
269
- name : Upload assets to GitHub release (final)
261
270
if : " !startsWith(github.ref, 'refs/tags/rc/')"
262
271
uses : xresloader/upload-to-github-release@v1
@@ -268,14 +277,3 @@ jobs:
268
277
prerelease : false
269
278
overwrite : true
270
279
release_id : ${{ steps.github_release_final.outputs.id }}
271
- - name : Upload assets to GitHub release (release candidate)
272
- if : " startsWith(github.ref, 'refs/tags/rc/')"
273
- uses : xresloader/upload-to-github-release@v1
274
- env :
275
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
276
- with :
277
- file : " _release/*"
278
- draft : true
279
- prerelease : true
280
- overwrite : true
281
- release_id : ${{ steps.github_release_rc.outputs.id }}
0 commit comments