Skip to content

Commit d1ac00d

Browse files
authored
CI: add windows build (atari800#247)
CI: fix linux build with apt update before install CI: add package depends for windows CI: fix package names for windows CI: change windows build name
1 parent f06cf48 commit d1ac00d

1 file changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: install depends
17-
run: sudo apt-get install -y libsdl1.2-dev libsdl2-dev libmp3lame-dev libreadline-dev
17+
run: sudo apt update && sudo apt install -y libsdl1.2-dev libsdl2-dev libmp3lame-dev libreadline-dev
1818
- name: autogen
1919
run: ./autogen.sh
2020
- name: configure
@@ -47,3 +47,48 @@ jobs:
4747
name: atari800-macos-arm64
4848
path: src/atari800
4949

50+
build-windows-msys2:
51+
name: Build on Windows MSYS2
52+
runs-on: windows-latest
53+
54+
defaults:
55+
run:
56+
shell: msys2 {0}
57+
58+
steps:
59+
- name: Checkout repository
60+
uses: actions/checkout@v4
61+
62+
- name: Setup MSYS2
63+
uses: msys2/setup-msys2@v2
64+
with:
65+
msystem: MINGW64
66+
update: true
67+
install: >-
68+
git
69+
base-devel
70+
mingw-w64-x86_64-toolchain
71+
autoconf
72+
automake
73+
libtool
74+
mingw-w64-x86_64-SDL2
75+
mingw-w64-x86_64-sdl12-compat
76+
mingw-w64-x86_64-readline
77+
mingw-w64-x86_64-libpng
78+
79+
- name: Run autoreconf
80+
run: autoreconf -fiv
81+
82+
- name: Configure project
83+
run: ./configure
84+
85+
- name: Build project
86+
run: make -j$(nproc)
87+
88+
- name: Verify build
89+
run: |
90+
if [ ! -f src/atari800.exe ]; then
91+
echo "Build failed"
92+
exit 1
93+
fi
94+
echo "Build succeeded"

0 commit comments

Comments
 (0)