mirror of
https://github.com/86Box/86Box.git
synced 2025-01-22 17:22:25 -05:00
workflows: add artifacts to cmake/mingw
This commit is contained in:
parent
44ccefb28a
commit
8365b7b187
1 changed files with 19 additions and 9 deletions
28
.github/workflows/cmake.yml
vendored
28
.github/workflows/cmake.yml
vendored
|
@ -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 }})
|
||||
|
|
Loading…
Reference in a new issue