workflows: add msys2/ucrt64 and msys2/clang64

This commit is contained in:
David Hrdlička 2021-08-29 04:14:21 +02:00
parent 02f965d82a
commit f3d04d2411
2 changed files with 36 additions and 15 deletions

View File

@ -14,7 +14,7 @@ on:
jobs: jobs:
build: build:
name: Build (DEV_BUILD=${{ matrix.dev-build }}, NEW_DYNAREC=${{ matrix.new-dynarec }}, X64=${{ matrix.target-arch.x64 }}) name: ${{ matrix.build-target.msystem }} makefile build (DEV_BUILD=${{ matrix.dev-build }}, NEW_DYNAREC=${{ matrix.new-dynarec }})
runs-on: windows-latest runs-on: windows-latest
@ -22,33 +22,50 @@ jobs:
run: run:
shell: msys2 {0} shell: msys2 {0}
continue-on-error: ${{ matrix.build-target.continue-on-error }}
strategy: strategy:
fail-fast: false
matrix: matrix:
dev-build: ['y', 'n'] dev-build: ['y', 'n']
new-dynarec: ['y', 'n'] new-dynarec: ['y', 'n']
target-arch: build-target:
- x64: 'n' - msystem: MINGW32
msystem: MINGW32
prefix: mingw-w64-i686 prefix: mingw-w64-i686
- x64: 'y' x64: n
msystem: MINGW64 clang: n
continue-on-error: false
- msystem: MINGW64
prefix: mingw-w64-x86_64 prefix: mingw-w64-x86_64
x64: y
clang: n
continue-on-error: false
- msystem: UCRT64
prefix: mingw-w64-ucrt-x86_64
x64: y
clang: n
continue-on-error: false
- msystem: CLANG64
prefix: mingw-w64-clang-x86_64
x64: y
clang: y
continue-on-error: true
steps: steps:
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2
with: with:
update: true update: true
msystem: ${{ matrix.target-arch.msystem }} msystem: ${{ matrix.build-target.msystem }}
install: >- install: >-
make make
${{ matrix.target-arch.prefix }}-toolchain ${{ matrix.build-target.prefix }}-toolchain
${{ matrix.target-arch.prefix }}-openal ${{ matrix.build-target.prefix }}-openal
${{ matrix.target-arch.prefix }}-freetype ${{ matrix.build-target.prefix }}-freetype
${{ matrix.target-arch.prefix }}-SDL2 ${{ matrix.build-target.prefix }}-SDL2
${{ matrix.target-arch.prefix }}-zlib ${{ matrix.build-target.prefix }}-zlib
${{ matrix.target-arch.prefix }}-libpng ${{ matrix.build-target.prefix }}-libpng
${{ matrix.target-arch.prefix }}-libvncserver ${{ matrix.build-target.prefix }}-libvncserver
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: make - name: make
run: make -fwin/makefile.mingw -j DEV_BUILD=${{ matrix.dev-build }} NEW_DYNAREC=${{ matrix.new-dynarec }} X64=${{ matrix.target-arch.x64 }} VNC=n run: make -fwin/makefile.mingw -j DEV_BUILD=${{ matrix.dev-build }} NEW_DYNAREC=${{ matrix.new-dynarec }} X64=${{ matrix.build-target.x64 }} CLANG=${{ matrix.build-target.clang }} VNC=n
working-directory: ./src working-directory: ./src

View File

@ -43,6 +43,10 @@ jobs:
prefix: mingw-w64-i686 prefix: mingw-w64-i686
- msystem: MINGW64 - msystem: MINGW64
prefix: mingw-w64-x86_64 prefix: mingw-w64-x86_64
- msystem: UCRT64
prefix: mingw-w64-ucrt-x86_64
- msystem: CLANG64
prefix: mingw-w64-clang-x86_64
steps: steps:
- uses: msys2/setup-msys2@v2 - uses: msys2/setup-msys2@v2