14
14
15
15
name : Stack CI
16
16
17
+ permissions : read-all
18
+
17
19
on :
18
20
push :
19
21
branches :
40
42
41
43
steps :
42
44
- name : Checkout
43
- uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
45
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
44
46
with :
45
47
submodules : true
46
48
49
51
run : |
50
52
cat matrix.yaml
51
53
CI_BUILDS=$(yq eval -o json -I 0 matrix.yaml)
52
- echo "::set-output name= ci-builds:: $CI_BUILDS"
54
+ echo "ci-builds= $CI_BUILDS" >> $GITHUB_OUTPUT
53
55
54
56
build :
55
57
name : Build and Test
@@ -70,20 +72,21 @@ jobs:
70
72
71
73
steps :
72
74
- name : Checkout
73
- uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
75
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
74
76
with :
75
77
submodules : true
76
78
77
79
# Installs the recent protoc, for now unpinned to gain some experience
78
80
- name : Install Protoc
79
- uses : arduino/setup-protoc@v1
81
+ uses : arduino/setup-protoc@v3
80
82
with :
81
- version : ' 3.x'
83
+ version : ' 28.x'
84
+ repo-token : ${{ secrets.GITHUB_TOKEN }}
82
85
83
86
# Install Stack without GHC first, so we have an opportunity to cache the
84
87
# Pantry package index.
85
88
- name : Install Stack
86
- uses : haskell/ actions/setup@eb3073b623d53d0cdd38e4d4c2408f14e3fc71c5
89
+ uses : haskell- actions/setup@64445b6b5dd545faf5f8e2acee8253eb5c2b29aa # v2.7.11
87
90
id : setup-stack
88
91
with :
89
92
enable-stack : true
@@ -100,7 +103,7 @@ jobs:
100
103
# out-of-date one, so we benefit from using restore-keys to bootstrap it
101
104
# with a previous index.
102
105
- name : Cache Pantry Package Index
103
- uses : actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
106
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
104
107
with :
105
108
# Everything except the decompressed Hackage index tarball. Why is
106
109
# that even materialized to disk?
@@ -117,7 +120,7 @@ jobs:
117
120
# GHC takes a while to gunzip and configure; let's try caching it
118
121
# pre-configured with zstd.
119
122
- name : Cache Configured GHC
120
- uses : actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
123
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
121
124
with :
122
125
# Omit the tarball itself; it'll double the cache size assuming
123
126
# similar compression ratios.
@@ -142,7 +145,7 @@ jobs:
142
145
# other builds with the same GHC version to benefit from any packages in
143
146
# common between two lockfiles.
144
147
- name : Cache Dependencies
145
- uses : actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
148
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
146
149
with :
147
150
# The Stack global work directory, minus GHC installations (already
148
151
# extracted from a tarball) and the Pantry package index (already
@@ -178,7 +181,7 @@ jobs:
178
181
# Cache pre-built modules for incremental builds, making sure to keep
179
182
# builds with different dependencies separate.
180
183
- name : Cache Modules
181
- uses : actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
184
+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684
182
185
with :
183
186
path : " **/.stack-work"
184
187
key : |
0 commit comments