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-28-a "
33
33
34
34
# Modify this value to "invalidate" the secp cache.
35
35
SECP_CACHE_VERSION : " 2022-12-23"
@@ -155,33 +155,24 @@ jobs:
155
155
if : runner.os == 'macOS'
156
156
run : brew install autoconf automake libtool
157
157
158
- - uses : actions/cache@v3
159
- name : " Cache secp256k1"
158
+ - name : Install secp256k1
159
+ uses : input-output-hk/setup- secp256k1@v1
160
160
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 }}
161
+ git-ref : ${{ env.SECP256K1_REF }}
162
+ cache-version : ${{ env.SECP_CACHE_VERSION }}
164
163
165
- - name : " LINUX: Install secp256k1"
166
- if : runner.os != 'Windows'
164
+ - name : Show paths
167
165
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
166
+ run : |
167
+ echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
168
+ echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
172
169
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
170
+ - name : List all pkg-config packages
171
+ run : |
172
+ # The tests call out to msys2 commands. We generally do not want to mix toolchains, so
173
+ # we are very deliberate about only adding msys64 to the path where absolutely necessary.
174
+ ${{ (runner.os == 'Windows' && '$env:PATH=("C:\msys64\mingw64\bin;{0}" -f $env:PATH)') || '' }}
175
+ pkg-config --list-all
185
176
186
177
- name : Cabal update
187
178
run : cabal update
@@ -199,13 +190,6 @@ jobs:
199
190
echo "# cabal.project.local"
200
191
cat cabal.project.local
201
192
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
193
- name : Build dry run
210
194
run : |
211
195
# The tests call out to msys2 commands. We generally do not want to mix toolchains, so
0 commit comments