workflows: add clang/mingw build

This commit is contained in:
David Hrdlička 2021-08-29 15:51:17 +02:00
parent 48e9165b13
commit a0c8f9aa9e

View file

@ -16,7 +16,7 @@ on:
jobs:
build:
name: ${{ matrix.build-target.msystem }} makefile build (DEV_BUILD=${{ matrix.dev-build }}, NEW_DYNAREC=${{ matrix.new-dynarec }})
name: ${{ matrix.environment.msystem }} makefile build (DEV_BUILD=${{ matrix.dev-build }}, NEW_DYNAREC=${{ matrix.new-dynarec }}, CLANG=${{ matrix.clang }})
runs-on: windows-latest
@ -24,50 +24,40 @@ jobs:
run:
shell: msys2 {0}
continue-on-error: ${{ matrix.build-target.continue-on-error }}
strategy:
fail-fast: false
matrix:
dev-build: ['y', 'n']
new-dynarec: ['y', 'n']
build-target:
clang: ['y', 'n']
environment:
- msystem: MINGW32
prefix: mingw-w64-i686
x64: n
clang: n
continue-on-error: false
- msystem: MINGW64
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:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{ matrix.build-target.msystem }}
msystem: ${{ matrix.environment.msystem }}
install: >-
make
${{ matrix.build-target.prefix }}-toolchain
${{ matrix.build-target.prefix }}-openal
${{ matrix.build-target.prefix }}-freetype
${{ matrix.build-target.prefix }}-SDL2
${{ matrix.build-target.prefix }}-zlib
${{ matrix.build-target.prefix }}-libpng
${{ matrix.build-target.prefix }}-libvncserver
${{ matrix.environment.prefix }}-gcc
${{ matrix.environment.prefix }}-clang
${{ matrix.environment.prefix }}-pkg-config
${{ matrix.environment.prefix }}-openal
${{ matrix.environment.prefix }}-freetype
${{ matrix.environment.prefix }}-SDL2
${{ matrix.environment.prefix }}-zlib
${{ matrix.environment.prefix }}-libpng
${{ matrix.environment.prefix }}-libvncserver
- uses: actions/checkout@v2
- name: make
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
run: make -fwin/makefile.mingw -j DEV_BUILD=${{ matrix.dev-build }} NEW_DYNAREC=${{ matrix.new-dynarec }} X64=${{ matrix.environment.x64 }} CLANG=${{ matrix.clang }} VNC=n
working-directory: ./src