Added MinGW CI job
This commit is contained in:
parent
b317753681
commit
fa45f161af
39
.github/workflows/ci-workflow.yml
vendored
39
.github/workflows/ci-workflow.yml
vendored
@ -70,3 +70,42 @@ jobs:
|
||||
with:
|
||||
name: premake-windows-${{ matrix.platform }}
|
||||
path: bin\${{ matrix.config }}\
|
||||
mingw:
|
||||
runs-on: windows-2022
|
||||
strategy:
|
||||
matrix:
|
||||
config: [debug, release]
|
||||
msystem: [mingw32, mingw64]
|
||||
include:
|
||||
- platform: x86
|
||||
msystem: mingw32
|
||||
- platform: x64
|
||||
msystem: mingw64
|
||||
defaults:
|
||||
run:
|
||||
shell: msys2 {0}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: 'Setup MSYS2'
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
msystem: ${{ matrix.msystem }}
|
||||
update: true
|
||||
install: >-
|
||||
git
|
||||
make
|
||||
pacboy: >-
|
||||
toolchain:p
|
||||
- name: Build
|
||||
run: make -f Bootstrap.mak mingw PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }}
|
||||
- name: Test
|
||||
run: bin/${{ matrix.config }}/premake5.exe test --test-all
|
||||
- name: Docs check
|
||||
run: bin/${{ matrix.config }}/premake5.exe docs-check
|
||||
- name: Upload Artifacts
|
||||
if: matrix.config == 'release'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: premake-${{ matrix.msystem }}-${{ matrix.platform }}
|
||||
path: bin\${{ matrix.config }}\
|
||||
|
@ -81,14 +81,14 @@ windows-clean:
|
||||
$(SILENT) if exist .\build rmdir /s /q .\build
|
||||
$(SILENT) if exist .\obj rmdir /s /q .\obj
|
||||
|
||||
mingw-clean: windows-clean
|
||||
mingw-clean: nix-clean
|
||||
|
||||
mingw: mingw-clean
|
||||
if not exist build\bootstrap (mkdir build\bootstrap)
|
||||
mkdir -p build/bootstrap
|
||||
$(CC) -o build/bootstrap/premake_bootstrap -DPREMAKE_NO_BUILTIN_SCRIPTS -I"$(LUA_DIR)" -I"$(LUASHIM_DIR)" $(SRC) -lole32 -lversion
|
||||
./build/bootstrap/premake_bootstrap embed
|
||||
./build/bootstrap/premake_bootstrap --arch=$(PLATFORM) --os=windows --to=build/bootstrap --cc=mingw gmake2
|
||||
$(MAKE) -C build/bootstrap config=$(CONFIG)_$(PLATFORM:x86=win32)
|
||||
$(MAKE) -C build/bootstrap -j`getconf _NPROCESSORS_ONLN` config=$(CONFIG)_$(PLATFORM:x86=win32)
|
||||
|
||||
macosx: osx
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user