File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,22 +12,33 @@ jobs:
1212 runs-on : windows-latest
1313
1414 steps :
15- - name : Checkout repository
16- uses : actions/checkout@v3
17-
18- - name : Install w64devkit
19- run : |
20- curl -L -o w64devkit.zip https://github.com/skeeto/w64devkit/releases/download/v1.23.0/w64devkit-1.23.0.zip
21- 7z x w64devkit.zip -ow64devkit
22-
23- - name : Build with Makefile
24- run : ./w64devkit/w64devkit/bin/make.exe
25-
26- - name : Upload binary artifact
27- uses : actions/upload-artifact@v4
28- with :
29- name : soare-binary-windows
30- path : bin/soare.exe
15+ - name : Checkout repository
16+ uses : actions/checkout@v3
17+
18+ - name : Install MSYS2
19+ run : choco install msys2 -y
20+
21+ - name : Update pacman and install build tools
22+ shell : bash
23+ run : |
24+ pacman -Sy --noconfirm
25+ pacman -S --noconfirm \
26+ mingw-w64-x86_64-gcc \
27+ mingw-w64-x86_64-make \
28+ mingw-w64-x86_64-binutils \
29+ mingw-w64-x86_64-windres
30+
31+ - name : Build SOARE
32+ shell : bash
33+ run : |
34+ export PATH="/mingw64/bin:$PATH"
35+ make
36+
37+ - name : Upload binary artifact
38+ uses : actions/upload-artifact@v4
39+ with :
40+ name : soare-binary-windows
41+ path : bin/soare.exe
3142
3243 build-linux :
3344 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ CFLAGS += -Wextra
2828CFLAGS += -Wno-unused-result
2929CFLAGS += -Wno-unused-parameter
3030CFLAGS += -Wno-implicit-fallthrough
31+ CFLAGS += -O2
3132
3233ifeq ($(OS ) , Windows_NT)
3334
You can’t perform that action at this time.
0 commit comments