@@ -81,138 +81,140 @@ jobs:
81
81
- name : Checkout
82
82
uses : actions/checkout@v3
83
83
84
+ - run : ls -l ./.github/workflows/run-in-docker.yml
85
+
84
86
- name : Run in Docker
85
87
uses : ./.github/workflows/run-in-docker.yml
86
88
with :
87
89
dockerfile : ./ci/linux-debian-wine.Dockerfile
88
90
tag : ci-image
89
91
90
- msvc_debian :
91
- name : ${{ matrix.configuration.job_name }}
92
- runs-on : ubuntu-latest
93
- needs : docker_wine_cache
94
-
95
- env :
96
- WRAPPER_CMD : ' wine'
97
- WERROR_CFLAGS : ' -WX'
98
- WITH_VALGRIND : ' no'
99
- ECDH : ' yes'
100
- RECOVERY : ' yes'
101
- EXPERIMENTAL : ' yes'
102
- SCHNORRSIG : ' yes'
103
- ELLSWIFT : ' yes'
104
- CTIMETESTS : ' no'
105
- # Use a MinGW-w64 host to tell ./configure we're building for Windows.
106
- # This will detect some MinGW-w64 tools but then make will need only
107
- # the MSVC tools CC, AR and NM as specified below.
108
- HOST : ' x86_64-w64-mingw32'
109
- CC : ' /opt/msvc/bin/x64/cl'
110
- AR : ' /opt/msvc/bin/x64/lib'
111
- NM : ' /opt/msvc/bin/x64/dumpbin -symbols -headers'
112
- # Set non-essential options that affect the CLI messages here.
113
- # (They depend on the user's taste, so we don't want to set them automatically in configure.ac.)
114
- CFLAGS : ' -nologo -diagnostics:caret'
115
- LDFLAGS : ' -Xlinker -Xlinker -Xlinker -nologo'
116
-
117
- strategy :
118
- fail-fast : false
119
- matrix :
120
- configuration :
121
- - job_name : ' x86_64 (MSVC): Windows (Debian stable, Wine)'
122
- env_var :
123
- - job_name : ' x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct)'
124
- env_var : ' WIDEMUL=int128_struct'
125
- - job_name : ' x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct with __(u)mulh)'
126
- env_var : ' WIDEMUL=int128_struct CPPFLAGS=-DSECP256K1_MSVC_MULH_TEST_OVERRIDE'
127
- - job_name : ' i686 (MSVC): Windows (Debian stable, Wine)'
128
- env_var : ' HOST=i686-w64-mingw32 CC=/opt/msvc/bin/x86/cl AR=/opt/msvc/bin/x86/lib NM="/opt/msvc/bin/x86/dumpbin -symbols -headers"'
129
-
130
- steps :
131
- - name : Checkout
132
- uses : actions/checkout@v3
133
-
134
- - name : Set up Docker Buildx
135
- uses : docker/setup-buildx-action@v2
136
-
137
- - name : Build container
138
- uses : docker/build-push-action@v4
139
- with :
140
- context : .
141
- file : ./ci/linux-debian-wine.Dockerfile
142
- tags : ci-image
143
- push : false
144
- load : true
145
- cache-from : type=gha
146
-
147
- - name : Run test script
148
- uses : addnab/docker-run-action@v3
149
- with :
150
- image : ci-image
151
- options : -v ${{ github.workspace }}:${{ github.workspace }}
152
- run : |
153
- export \
154
- HOST="${{ env.HOST }}" \
155
- WRAPPER_CMD="${{ env.WRAPPER_CMD }}" \
156
- WERROR_CFLAGS="${{ env.WERROR_CFLAGS }}" \
157
- MAKEFLAGS="${{ env.MAKEFLAGS }}" \
158
- BUILD="${{ env.BUILD }}" \
159
- ECMULTWINDOW="${{ env.ECMULTWINDOW }}" \
160
- ECMULTGENPRECISION="${{ env.ECMULTGENPRECISION }}" \
161
- ASM="${{ env.ASM }}" \
162
- WIDEMUL="${{ env.WIDEMUL }}" \
163
- WITH_VALGRIND="${{ env.WITH_VALGRIND }}" \
164
- EXTRAFLAGS="${{ env.EXTRAFLAGS }}" \
165
- EXPERIMENTAL="${{ env.EXPERIMENTAL }}" \
166
- ECDH="${{ env.ECDH }}" \
167
- RECOVERY="${{ env.RECOVERY }}" \
168
- SCHNORRSIG="${{ env.SCHNORRSIG }}" \
169
- ELLSWIFT="${{ env.ELLSWIFT }}" \
170
- SECP256K1_TEST_ITERS="${{ env.SECP256K1_TEST_ITERS }}" \
171
- BENCH="${{ env.BENCH }}" \
172
- SECP256K1_BENCH_ITERS="${{ env.SECP256K1_BENCH_ITERS }}" \
173
- CTIMETESTS="${{ env.CTIMETESTS }}" \
174
- EXAMPLES="${{ env.EXAMPLES }}" \
175
- CC="${{ env.CC }}" \
176
- AR="${{ env.AR }}" \
177
- NM="${{ env.NM }}" \
178
- CFLAGS="${{ env.CFLAGS }}" \
179
- LDFLAGS="${{ env.LDFLAGS }}" \
180
- ${{ matrix.configuration.env_var }}
181
- git config --global --add safe.directory ${{ github.workspace }}
182
- cd ${{ github.workspace }}
183
- ./ci/cirrus.sh
184
- cat tests.log || true
185
- cat noverify_tests.log || true
186
- cat exhaustive_tests.log || true
187
- cat ctime_tests.log || true
188
- cat bench.log || true
189
- cat config.log || true
190
- cat test_env.log || true
191
- env
192
-
193
- win64-native :
194
- name : " x86_64: Windows, VS 2022"
195
- # See: https://github.com/actions/runner-images#available-images.
196
- runs-on : windows-2022
197
-
198
- strategy :
199
- fail-fast : false
200
- matrix :
201
- lib_type : ['shared', 'static']
202
-
203
- steps :
204
- - name : Checkout
205
- uses : actions/checkout@v3
206
-
207
- - name : Generate buildsystem
208
- run : cmake -E env CFLAGS="/WX" cmake -B build -A x64 -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=${{ matrix.lib_type == 'shared' && 'ON' || 'OFF' }}
209
-
210
- - name : Build
211
- run : cmake --build build --config RelWithDebInfo -- /p:UseMultiToolTask=true /maxCpuCount
212
-
213
- - name : Check
214
- run : |
215
- ctest -C RelWithDebInfo --test-dir build -j ([int]$env:NUMBER_OF_PROCESSORS + 1)
216
- build\src\RelWithDebInfo\bench_ecmult.exe
217
- build\src\RelWithDebInfo\bench_internal.exe
218
- build\src\RelWithDebInfo\bench.exe
92
+ # msvc_debian:
93
+ # name: ${{ matrix.configuration.job_name }}
94
+ # runs-on: ubuntu-latest
95
+ # needs: docker_wine_cache
96
+
97
+ # env:
98
+ # WRAPPER_CMD: 'wine'
99
+ # WERROR_CFLAGS: '-WX'
100
+ # WITH_VALGRIND: 'no'
101
+ # ECDH: 'yes'
102
+ # RECOVERY: 'yes'
103
+ # EXPERIMENTAL: 'yes'
104
+ # SCHNORRSIG: 'yes'
105
+ # ELLSWIFT: 'yes'
106
+ # CTIMETESTS: 'no'
107
+ # # Use a MinGW-w64 host to tell ./configure we're building for Windows.
108
+ # # This will detect some MinGW-w64 tools but then make will need only
109
+ # # the MSVC tools CC, AR and NM as specified below.
110
+ # HOST: 'x86_64-w64-mingw32'
111
+ # CC: '/opt/msvc/bin/x64/cl'
112
+ # AR: '/opt/msvc/bin/x64/lib'
113
+ # NM: '/opt/msvc/bin/x64/dumpbin -symbols -headers'
114
+ # # Set non-essential options that affect the CLI messages here.
115
+ # # (They depend on the user's taste, so we don't want to set them automatically in configure.ac.)
116
+ # CFLAGS: '-nologo -diagnostics:caret'
117
+ # LDFLAGS: '-Xlinker -Xlinker -Xlinker -nologo'
118
+
119
+ # strategy:
120
+ # fail-fast: false
121
+ # matrix:
122
+ # configuration:
123
+ # - job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine)'
124
+ # env_var:
125
+ # - job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct)'
126
+ # env_var: 'WIDEMUL=int128_struct'
127
+ # - job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct with __(u)mulh)'
128
+ # env_var: 'WIDEMUL=int128_struct CPPFLAGS=-DSECP256K1_MSVC_MULH_TEST_OVERRIDE'
129
+ # - job_name: 'i686 (MSVC): Windows (Debian stable, Wine)'
130
+ # env_var: 'HOST=i686-w64-mingw32 CC=/opt/msvc/bin/x86/cl AR=/opt/msvc/bin/x86/lib NM="/opt/msvc/bin/x86/dumpbin -symbols -headers"'
131
+
132
+ # steps:
133
+ # - name: Checkout
134
+ # uses: actions/checkout@v3
135
+
136
+ # - name: Set up Docker Buildx
137
+ # uses: docker/setup-buildx-action@v2
138
+
139
+ # - name: Build container
140
+ # uses: docker/build-push-action@v4
141
+ # with:
142
+ # context: .
143
+ # file: ./ci/linux-debian-wine.Dockerfile
144
+ # tags: ci-image
145
+ # push: false
146
+ # load: true
147
+ # cache-from: type=gha
148
+
149
+ # - name: Run test script
150
+ # uses: addnab/docker-run-action@v3
151
+ # with:
152
+ # image: ci-image
153
+ # options: -v ${{ github.workspace }}:${{ github.workspace }}
154
+ # run: |
155
+ # export \
156
+ # HOST="${{ env.HOST }}" \
157
+ # WRAPPER_CMD="${{ env.WRAPPER_CMD }}" \
158
+ # WERROR_CFLAGS="${{ env.WERROR_CFLAGS }}" \
159
+ # MAKEFLAGS="${{ env.MAKEFLAGS }}" \
160
+ # BUILD="${{ env.BUILD }}" \
161
+ # ECMULTWINDOW="${{ env.ECMULTWINDOW }}" \
162
+ # ECMULTGENPRECISION="${{ env.ECMULTGENPRECISION }}" \
163
+ # ASM="${{ env.ASM }}" \
164
+ # WIDEMUL="${{ env.WIDEMUL }}" \
165
+ # WITH_VALGRIND="${{ env.WITH_VALGRIND }}" \
166
+ # EXTRAFLAGS="${{ env.EXTRAFLAGS }}" \
167
+ # EXPERIMENTAL="${{ env.EXPERIMENTAL }}" \
168
+ # ECDH="${{ env.ECDH }}" \
169
+ # RECOVERY="${{ env.RECOVERY }}" \
170
+ # SCHNORRSIG="${{ env.SCHNORRSIG }}" \
171
+ # ELLSWIFT="${{ env.ELLSWIFT }}" \
172
+ # SECP256K1_TEST_ITERS="${{ env.SECP256K1_TEST_ITERS }}" \
173
+ # BENCH="${{ env.BENCH }}" \
174
+ # SECP256K1_BENCH_ITERS="${{ env.SECP256K1_BENCH_ITERS }}" \
175
+ # CTIMETESTS="${{ env.CTIMETESTS }}" \
176
+ # EXAMPLES="${{ env.EXAMPLES }}" \
177
+ # CC="${{ env.CC }}" \
178
+ # AR="${{ env.AR }}" \
179
+ # NM="${{ env.NM }}" \
180
+ # CFLAGS="${{ env.CFLAGS }}" \
181
+ # LDFLAGS="${{ env.LDFLAGS }}" \
182
+ # ${{ matrix.configuration.env_var }}
183
+ # git config --global --add safe.directory ${{ github.workspace }}
184
+ # cd ${{ github.workspace }}
185
+ # ./ci/cirrus.sh
186
+ # cat tests.log || true
187
+ # cat noverify_tests.log || true
188
+ # cat exhaustive_tests.log || true
189
+ # cat ctime_tests.log || true
190
+ # cat bench.log || true
191
+ # cat config.log || true
192
+ # cat test_env.log || true
193
+ # env
194
+
195
+ # win64-native:
196
+ # name: "x86_64: Windows, VS 2022"
197
+ # # See: https://github.com/actions/runner-images#available-images.
198
+ # runs-on: windows-2022
199
+
200
+ # strategy:
201
+ # fail-fast: false
202
+ # matrix:
203
+ # lib_type: ['shared', 'static']
204
+
205
+ # steps:
206
+ # - name: Checkout
207
+ # uses: actions/checkout@v3
208
+
209
+ # - name: Generate buildsystem
210
+ # run: cmake -E env CFLAGS="/WX" cmake -B build -A x64 -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=${{ matrix.lib_type == 'shared' && 'ON' || 'OFF' }}
211
+
212
+ # - name: Build
213
+ # run: cmake --build build --config RelWithDebInfo -- /p:UseMultiToolTask=true /maxCpuCount
214
+
215
+ # - name: Check
216
+ # run: |
217
+ # ctest -C RelWithDebInfo --test-dir build -j ([int]$env:NUMBER_OF_PROCESSORS + 1)
218
+ # build\src\RelWithDebInfo\bench_ecmult.exe
219
+ # build\src\RelWithDebInfo\bench_internal.exe
220
+ # build\src\RelWithDebInfo\bench.exe
0 commit comments