Skip to content

Commit 62bc288

Browse files
committed
fix env vars 01
1 parent 4a41868 commit 62bc288

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

.github/workflows/ci.yml

+11-9
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,21 @@ jobs:
5757

5858
mingw_debian:
5959
name: ${{ matrix.configuration.job_name }}
60+
needs: docker_wine_cache
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
configuration:
65+
- job_name: 'x86_64 (mingw32-w64): Windows (Debian stable, Wine)'
66+
env_vars: 'HOST=x86_64-w64-mingw32'
67+
- job_name: 'i686 (mingw32-w64): Windows (Debian stable, Wine)'
68+
env_vars: 'HOST=i686-w64-mingw32'
6069
uses: ./.github/workflows/run-in-docker.yml
6170
with:
6271
dockerfile: ./ci/linux-debian-wine.Dockerfile
6372
tag: ci-image
64-
needs: docker_wine_cache
73+
job_env_vars: 'WRAPPER_CMD=wine WITH_VALGRIND=no ECDH=yes RECOVERY=yes SCHNORRSIG=yes CTIMETESTS=no'
74+
matrix_env_vars: ${{ matrix.configuration.env_vars }}
6575

6676
# env:
6777
# WRAPPER_CMD: 'wine'
@@ -71,14 +81,6 @@ jobs:
7181
# SCHNORRSIG: 'yes'
7282
# CTIMETESTS: 'no'
7383

74-
strategy:
75-
fail-fast: false
76-
matrix:
77-
configuration:
78-
- job_name: 'x86_64 (mingw32-w64): Windows (Debian stable, Wine)'
79-
env_vars: 'HOST=x86_64-w64-mingw32'
80-
- job_name: 'i686 (mingw32-w64): Windows (Debian stable, Wine)'
81-
env_vars: 'HOST=i686-w64-mingw32'
8284

8385
# steps:
8486
# - name: Checkout

.github/workflows/run-in-docker.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ on:
1010
default: 'ci-image'
1111
required: false
1212
type: string
13+
job_env_vars:
14+
description: 'Environment variables provided by a job'
15+
required: false
16+
type: string
17+
matrix_env_vars:
18+
description: 'Environment variables provided by a matrix'
19+
required: false
20+
type: string
1321

1422
jobs:
1523
reusable_workflow_job:
@@ -20,7 +28,7 @@ jobs:
2028

2129
- name: Set environment variables
2230
run: |
23-
read -r -a vars <<< "${{ matrix.configuration.env_vars }}"
31+
read -r -a vars <<< "${{ inputs.job_env_vars }} ${{ inputs.matrix_env_vars }}"
2432
for var in "${vars[@]}"; do
2533
echo "$var" >> "$GITHUB_ENV"
2634
done

0 commit comments

Comments
 (0)