-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.15 KB
/
Copy pathbuild.yml
File metadata and controls
38 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build
# Checks that it compiles on every push / PR to main.
# Stable Ubuntu i686-w64-mingw32 cross-compiler (the windows-runner msys2 ships a
# bleeding-edge gcc that fails to static-link).
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install 32-bit MinGW
run: |
sudo apt-get update
sudo apt-get install -y g++-mingw-w64-i686 cmake
sudo update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix || true
sudo update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix || true
- name: Build
run: |
cmake -S . -B build \
-DCMAKE_SYSTEM_NAME=Windows \
-DCMAKE_C_COMPILER=i686-w64-mingw32-gcc \
-DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ \
-DCMAKE_RC_COMPILER=i686-w64-mingw32-windres
cmake --build build --target mss32 -j
test -f build/mss32.dll
- uses: actions/upload-artifact@v4
with:
name: mss32-dev
path: build/mss32.dll