Skip to content

Commit 4509dd5

Browse files
Update workflows
1 parent 7f058f1 commit 4509dd5

2 files changed

Lines changed: 28 additions & 16 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ CFLAGS += -Wextra
2828
CFLAGS += -Wno-unused-result
2929
CFLAGS += -Wno-unused-parameter
3030
CFLAGS += -Wno-implicit-fallthrough
31+
CFLAGS += -O2
3132

3233
ifeq ($(OS), Windows_NT)
3334

0 commit comments

Comments
 (0)