Skip to content

Commit bd1ce56

Browse files
cielavenirpablodelara
authored andcommitted
add mingw CI
Signed-off-by: Taiju Yamada <[email protected]>
1 parent ae034d6 commit bd1ce56

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,56 @@ jobs:
5858
- name: Run extended tests
5959
run: bash tools/test_extended.sh
6060

61+
run_tests_mingw_linux_64:
62+
needs: check_format
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/[email protected]
66+
- name: Install build dependencies (Linux)
67+
run: sudo apt install nasm mingw-w64
68+
- name: Build
69+
shell: bash
70+
run: |
71+
make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=x86_64
72+
# wine does not seem available, hence cannot run tests.
73+
74+
run_tests_mingw_linux_32:
75+
needs: check_format
76+
runs-on: ubuntu-latest
77+
steps:
78+
- uses: actions/[email protected]
79+
- name: Install build dependencies (Linux)
80+
run: sudo apt install nasm mingw-w64
81+
- name: Build
82+
shell: bash
83+
run: |
84+
make -j $(nproc) -f Makefile.unx programs/igzip tests arch=mingw host_cpu=base_aliases CC=i686-w64-mingw32-gcc
85+
86+
run_tests_mingw_windows_64:
87+
needs: check_format
88+
runs-on: windows-latest
89+
steps:
90+
- uses: actions/[email protected]
91+
- name: Install nasm
92+
uses: ilammy/[email protected]
93+
- name: Build
94+
shell: bash
95+
run: |
96+
make -j $(nproc) -f Makefile.unx programs/igzip tests SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
97+
- name: Run tests
98+
shell: bash
99+
run: |
100+
# autoconf is missing, hence simulates test_checks.sh
101+
make -j $(nproc) -f Makefile.unx check D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
102+
- name: Run extended tests
103+
shell: bash
104+
run: |
105+
# simulates test_extended.sh
106+
make -j $(nproc) -f Makefile.unx perf D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
107+
make -j $(nproc) -f Makefile.unx test D=TEST_SEED=0 SIM= arch=mingw host_cpu=x86_64 AR=x86_64-w64-mingw32-gcc-ar
108+
109+
# seems like i686-w64-mingw32-gcc is not available on windows runner.
110+
61111
run_tests_windows:
62112
needs: check_format
63113
runs-on: windows-latest

0 commit comments

Comments
 (0)