File tree Expand file tree Collapse file tree 2 files changed +42
-3
lines changed Expand file tree Collapse file tree 2 files changed +42
-3
lines changed Original file line number Diff line number Diff line change 70
70
with :
71
71
name : premake-windows-${{ matrix.platform }}
72
72
path : bin\${{ matrix.config }}\
73
+ mingw :
74
+ runs-on : windows-2022
75
+ strategy :
76
+ matrix :
77
+ config : [debug, release]
78
+ msystem : [mingw32, mingw64]
79
+ include :
80
+ - platform : x86
81
+ msystem : mingw32
82
+ - platform : x64
83
+ msystem : mingw64
84
+ defaults :
85
+ run :
86
+ shell : msys2 {0}
87
+ steps :
88
+ - name : Checkout
89
+ uses : actions/checkout@v2
90
+ - name : ' Setup MSYS2'
91
+ uses : msys2/setup-msys2@v2
92
+ with :
93
+ msystem : ${{ matrix.msystem }}
94
+ update : true
95
+ install : >-
96
+ git
97
+ make
98
+ pacboy : >-
99
+ toolchain:p
100
+ - name : Build
101
+ run : make -f Bootstrap.mak mingw PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }}
102
+ - name : Test
103
+ run : bin/${{ matrix.config }}/premake5.exe test --test-all
104
+ - name : Docs check
105
+ run : bin/${{ matrix.config }}/premake5.exe docs-check
106
+ - name : Upload Artifacts
107
+ if : matrix.config == 'release'
108
+ uses : actions/upload-artifact@v2
109
+ with :
110
+ name : premake-${{ matrix.msystem }}-${{ matrix.platform }}
111
+ path : bin\${{ matrix.config }}\
Original file line number Diff line number Diff line change @@ -81,14 +81,14 @@ windows-clean:
81
81
$(SILENT ) if exist .\b uild rmdir /s /q .\b uild
82
82
$(SILENT ) if exist .\o bj rmdir /s /q .\o bj
83
83
84
- mingw-clean : windows -clean
84
+ mingw-clean : nix -clean
85
85
86
86
mingw : mingw-clean
87
- if not exist build\ b ootstrap (mkdir build \b ootstrap)
87
+ mkdir -p build/ bootstrap
88
88
$(CC ) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -I" $( LUA_DIR) " -I" $( LUASHIM_DIR) " $(SRC ) -lole32 -lversion
89
89
./build/bootstrap/premake_bootstrap embed
90
90
./build/bootstrap/premake_bootstrap --arch=$(PLATFORM ) --os=windows --to=build/bootstrap --cc=mingw gmake2
91
- $(MAKE ) -C build/bootstrap config=$(CONFIG ) _$(PLATFORM:x86=win32 )
91
+ $(MAKE ) -C build/bootstrap -j ` getconf _NPROCESSORS_ONLN ` config=$(CONFIG ) _$(PLATFORM:x86=win32 )
92
92
93
93
macosx : osx
94
94
You can’t perform that action at this time.
0 commit comments