Skip to content

Commit 629f0d2

Browse files
authored
Added MinGW to C/C++ CI workflow.
1 parent 92819c9 commit 629f0d2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/c-cpp.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build-windows:
11-
name: build-windows-latest
11+
name: build-windows-vs
1212
runs-on: windows-latest
1313
steps:
1414
- name: compile with VS 2022
@@ -25,6 +25,26 @@ jobs:
2525
name: windows
2626
path: |
2727
'x64\Release\likespro.eth - UNIVERSAL.exe'
28+
build-windows-mingw:
29+
name: build-windows-mingw
30+
runs-on: windows-latest
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Set up MinGW
34+
uses: egor-tensin/setup-mingw@v2
35+
- name: compile with GCC
36+
run: |
37+
g++ -std=c++17 'likespro.eth - UNIVERSAL/likespro.eth - UNIVERSAL.cpp' -o 'likespro.eth - UNIVERSAL.exe'
38+
- name: run
39+
run: |
40+
'./likespro.eth - UNIVERSAL.exe'
41+
shell: bash
42+
- name: upload executable
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: ${{matrix.os}}
46+
path: |
47+
'likespro.eth - UNIVERSAL.exe'
2848
build-mac-and-ubuntu:
2949
runs-on: ${{matrix.os}}
3050
strategy:

0 commit comments

Comments
 (0)