Skip to content

Commit

Permalink
Add mingw_debian GHA job
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Aug 10, 2023
1 parent eaa8d46 commit 5f8ccd0
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 6 deletions.
92 changes: 86 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,93 @@ jobs:
- name: Build container
uses: docker/build-push-action@v4
with:
file: ./ci/linux-debian-msvc.Dockerfile
file: ./ci/linux-debian-wine.Dockerfile
tags: ci-image
push: false
load: false
cache-from: type=gha
cache-to: type=gha,mode=min

mingw_debian:
name: ${{ matrix.configuration.job_name }}
runs-on: ubuntu-latest
needs: docker_cache

env:
WRAPPER_CMD: 'wine'
WITH_VALGRIND: 'no'
ECDH: 'yes'
RECOVERY: 'yes'
SCHNORRSIG: 'yes'
CTIMETESTS: 'no'

strategy:
fail-fast: false
matrix:
configuration:
- job_name: 'x86_64 (mingw32-w64): Windows (Debian stable, Wine)'
env_var: 'HOST=x86_64-w64-mingw32'
- job_name: 'i686 (mingw32-w64): Windows (Debian stable, Wine)'
env_var: 'HOST=i686-w64-mingw32'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build container
uses: docker/build-push-action@v4
with:
context: .
file: ./ci/linux-debian-wine.Dockerfile
tags: ci-image
push: false
load: true
cache-from: type=gha

- name: Run test script
uses: addnab/docker-run-action@v3
with:
image: ci-image
options: -v ${{ github.workspace }}:${{ github.workspace }}
run: |
export \
HOST="${{ env.HOST }}" \
WRAPPER_CMD="${{ env.WRAPPER_CMD }}" \
WERROR_CFLAGS="${{ env.WERROR_CFLAGS }}" \
MAKEFLAGS="${{ env.MAKEFLAGS }}" \
BUILD="${{ env.BUILD }}" \
ECMULTWINDOW="${{ env.ECMULTWINDOW }}" \
ECMULTGENPRECISION="${{ env.ECMULTGENPRECISION }}" \
ASM="${{ env.ASM }}" \
WIDEMUL="${{ env.WIDEMUL }}" \
WITH_VALGRIND="${{ env.WITH_VALGRIND }}" \
EXTRAFLAGS="${{ env.EXTRAFLAGS }}" \
EXPERIMENTAL="${{ env.EXPERIMENTAL }}" \
ECDH="${{ env.ECDH }}" \
RECOVERY="${{ env.RECOVERY }}" \
SCHNORRSIG="${{ env.SCHNORRSIG }}" \
ELLSWIFT="${{ env.ELLSWIFT }}" \
SECP256K1_TEST_ITERS="${{ env.SECP256K1_TEST_ITERS }}" \
BENCH="${{ env.BENCH }}" \
SECP256K1_BENCH_ITERS="${{ env.SECP256K1_BENCH_ITERS }}" \
CTIMETESTS="${{ env.CTIMETESTS }}" \
EXAMPLES="${{ env.EXAMPLES }}" \
${{ matrix.configuration.env_var }}
git config --global --add safe.directory ${{ github.workspace }}
cd ${{ github.workspace }}
./ci/cirrus.sh
cat tests.log || true
cat noverify_tests.log || true
cat exhaustive_tests.log || true
cat ctime_tests.log || true
cat bench.log || true
cat config.log || true
cat test_env.log || true
env
msvc_debian:
name: ${{ matrix.configuration.job_name }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,13 +166,13 @@ jobs:
fail-fast: false
matrix:
configuration:
- job_name: 'x86_64: Windows, Debian stable, MSVC, Wine'
- job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine)'
env_var:
- job_name: 'x86_64: Windows, Debian stable, MSVC, Wine (int128_struct)'
- job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct)'
env_var: 'WIDEMUL=int128_struct'
- job_name: 'x86_64: Windows, Debian stable, MSVC, Wine (int128_struct with __(u)mulh)'
- job_name: 'x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct with __(u)mulh)'
env_var: 'WIDEMUL=int128_struct CPPFLAGS=-DSECP256K1_MSVC_MULH_TEST_OVERRIDE'
- job_name: 'i686: Windows, Debian stable, MSVC, Wine'
- job_name: 'i686 (MSVC): Windows (Debian stable, Wine)'
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"'

steps:
Expand All @@ -106,7 +186,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
file: ./ci/linux-debian-msvc.Dockerfile
file: ./ci/linux-debian-wine.Dockerfile
tags: ci-image
push: false
load: true
Expand Down
File renamed without changes.

0 comments on commit 5f8ccd0

Please sign in to comment.