workflows: add artifacts to cmake/mingw

This commit is contained in:
David Hrdlička 2021-08-29 04:01:36 +02:00
parent 44ccefb28a
commit 8365b7b187

View file

@ -16,9 +16,6 @@ on:
- .github/workflows/**
- vcpkg.json
env:
BUILD_TYPE: RelWithDebInfo
jobs:
mingw:
name: ${{ matrix.target-arch.msystem }} build (DEV_BUILD=${{ matrix.dev-build }}, NEW_DYNAREC=${{ matrix.new-dynarec }})
@ -30,9 +27,17 @@ jobs:
shell: msys2 {0}
strategy:
fail-fast: false
matrix:
dev-build: ['ON', 'OFF']
new-dynarec: ['ON', 'OFF']
build:
- name: Debug
dev-build: off
new-dynarec: off
type: Debug
- name: Dev
dev-build: on
new-dynarec: on
type: Debug
target-arch:
- msystem: MINGW32
prefix: mingw-w64-i686
@ -58,12 +63,17 @@ jobs:
run: >-
cmake -S . -B build
-G "MSYS Makefiles"
-D CMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
-D DEV_BRANCH=${{ matrix.dev-build }}
-D NEW_DYNAREC=${{ matrix.new-dynarec }}
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/build/artifacts
-D CMAKE_BUILD_TYPE=${{ env.build.type }}
-D DEV_BRANCH=${{ matrix.build.dev-build }}
-D NEW_DYNAREC=${{ matrix.build.new-dynarec }}
-D VNC=OFF
- name: Build
run: cmake --build build
run: cmake --build build --target install
- uses: actions/upload-artifact@v2
with:
name: '86Box-${{ matrix.target-arch.msystem }}-${{ matrix.build.name }}-${{ matrix.target-arch }}-${{ github.sha }}'
path: build/artifacts/bin/**
vs2019:
name: VS2019 ${{ matrix.build.name }} ${{ matrix.target-arch }} build (${{ matrix.toolset }})