@@ -29,10 +29,10 @@ jobs:
29
29
30
30
env :
31
31
# Modify this value to "invalidate" the cabal cache.
32
- CABAL_CACHE_VERSION : " 2022-12-28 "
32
+ CABAL_CACHE_VERSION : " 2022-12-30 "
33
33
34
34
# Modify this value to "invalidate" the secp cache.
35
- SECP_CACHE_VERSION : " 2022-12-23 "
35
+ SECP_CACHE_VERSION : " 2022-12-30 "
36
36
37
37
# current ref from: 27.02.2022
38
38
SECP256K1_REF : ac83be33d0956faf6b7f61a60ab524ef7d6a473a
46
46
# FIXME: this is arguably a bug, and pkg-config should return the right values!
47
47
LD_LIBRARY_PATH : ${{ (matrix.os != 'windows-latest' && '/usr/local/lib') || '' }}
48
48
49
- CACHE_VERSION : " 2022-12-28"
50
-
51
49
steps :
52
50
- name : " WIN: Install System Dependencies via pacman (msys2)"
53
51
if : runner.os == 'Windows'
@@ -155,33 +153,11 @@ jobs:
155
153
if : runner.os == 'macOS'
156
154
run : brew install autoconf automake libtool
157
155
158
- - uses : actions/cache@v3
159
- name : " Cache secp256k1"
156
+ - name : Install secp256k1
157
+ uses : input-output-hk/setup- secp256k1@v1
160
158
with :
161
- path : secp256k1
162
- key : cache-secp256k1-${{ runner.os }}-${{ env.SECP_CACHE_VERSION }}
163
- restore-keys : cache-secp256k1-${{ runner.os }}-${{ env.SECP_CACHE_VERSION }}
164
-
165
- - name : " LINUX: Install secp256k1"
166
- if : runner.os != 'Windows'
167
- shell : bash
168
- env :
169
- CI_SECP_FLAGS : " --prefix=/usr/local"
170
- CI_SECP_INSTALL_CMD : sudo
171
- run : bash .github/workflows/build-secp256k1.bash
172
-
173
- # TODO: this really should come from a pre-built location
174
- - name : " WIN: Install secp256k1"
175
- if : runner.os == 'Windows'
176
- # Same env as tmate action
177
- env :
178
- MSYS2_PATH_TYPE : inherit
179
- MSYSTEM : MINGW64
180
- CHERE_INVOKING : 1
181
- # install secp into /mingw64 prefix, which is where pkg-config will look
182
- # by default.
183
- CI_SECP_FLAGS : " --prefix=/mingw64"
184
- run : C:\\msys64\\usr\\bin\\bash.exe .github/workflows/build-secp256k1.bash
159
+ git-ref : ${{ env.SECP256K1_REF }}
160
+ cache-version : ${{ env.SECP_CACHE_VERSION }}
185
161
186
162
- name : Cabal update
187
163
run : cabal update
@@ -199,13 +175,6 @@ jobs:
199
175
echo "# cabal.project.local"
200
176
cat cabal.project.local
201
177
202
- - name : List all pkg-config packages
203
- run : |
204
- # The tests call out to msys2 commands. We generally do not want to mix toolchains, so
205
- # we are very deliberate about only adding msys64 to the path where absolutely necessary.
206
- ${{ (runner.os == 'Windows' && '$env:PATH=("C:\msys64\mingw64\bin;{0}" -f $env:PATH)') || '' }}
207
- pkg-config --list-all
208
-
209
178
- name : Build dry run
210
179
run : |
211
180
# The tests call out to msys2 commands. We generally do not want to mix toolchains, so
0 commit comments