diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 928bb7107..a8b335844 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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 }})