GHA Build cleanups
This commit is contained in:
6
.github/workflows/cmake_linux.yml
vendored
6
.github/workflows/cmake_linux.yml
vendored
@@ -55,6 +55,7 @@ jobs:
|
|||||||
- name: SDL GUI
|
- name: SDL GUI
|
||||||
qt: off
|
qt: off
|
||||||
qt6: off
|
qt6: off
|
||||||
|
slug: -SDL
|
||||||
static: on
|
static: on
|
||||||
- name: Qt 5 GUI
|
- name: Qt 5 GUI
|
||||||
qt: on
|
qt: on
|
||||||
@@ -121,10 +122,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >-
|
run: >-
|
||||||
cmake -G Ninja -S . -B build --preset ${{ matrix.build.preset }}
|
cmake -S . -B build --preset ${{ matrix.build.preset }}
|
||||||
--toolchain ${{ matrix.environment.toolchain }}
|
--toolchain ${{ matrix.environment.toolchain }}
|
||||||
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
||||||
-D CMAKE_INSTALL_PREFIX=./build/artifacts
|
|
||||||
-D QT=${{ matrix.ui.qt }}
|
-D QT=${{ matrix.ui.qt }}
|
||||||
-D USE_QT6=${{ matrix.ui.qt6 }}
|
-D USE_QT6=${{ matrix.ui.qt6 }}
|
||||||
|
|
||||||
|
|||||||
109
.github/workflows/cmake_macos.yml
vendored
109
.github/workflows/cmake_macos.yml
vendored
@@ -26,11 +26,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
macos13-x86_64:
|
macos:
|
||||||
|
|
||||||
name: "${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, x86_64"
|
name: "${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, ${{ matrix.environment.arch }}"
|
||||||
|
|
||||||
runs-on: macos-13
|
runs-on: ${{ matrix.environment.runner }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
@@ -54,12 +54,27 @@ jobs:
|
|||||||
ui:
|
ui:
|
||||||
- name: SDL GUI
|
- name: SDL GUI
|
||||||
qt: off
|
qt: off
|
||||||
|
slug: -SDL
|
||||||
static: on
|
static: on
|
||||||
- name: Qt GUI
|
- name: Qt 5 GUI
|
||||||
qt: on
|
qt: on
|
||||||
slug: -Qt
|
slug: -Qt5
|
||||||
packages: >-
|
packages: >-
|
||||||
qt@5
|
qt@5
|
||||||
|
environment:
|
||||||
|
- arch: x86_64
|
||||||
|
toolchain: ./cmake/flags-gcc-x86_64.cmake
|
||||||
|
slug: -x86_64
|
||||||
|
runner: macos-13
|
||||||
|
- arch: arm64
|
||||||
|
toolchain: ./cmake/llvm-macos-aarch64.cmake
|
||||||
|
slug: -arm64
|
||||||
|
runner: macos-14
|
||||||
|
exclude:
|
||||||
|
- dynarec:
|
||||||
|
new: off
|
||||||
|
environment:
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -81,10 +96,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >-
|
run: >-
|
||||||
cmake -G Ninja -S . -B build --preset ${{ matrix.build.preset }}
|
cmake -S . -B build --preset ${{ matrix.build.preset }}
|
||||||
--toolchain ./cmake/flags-gcc-x86_64.cmake
|
--toolchain ${{ matrix.environment.toolchain }}
|
||||||
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
||||||
-D CMAKE_INSTALL_PREFIX=./build/artifacts
|
|
||||||
-D QT=${{ matrix.ui.qt }}
|
-D QT=${{ matrix.ui.qt }}
|
||||||
-D Qt5_ROOT=$(brew --prefix qt@5)
|
-D Qt5_ROOT=$(brew --prefix qt@5)
|
||||||
-D Qt5LinguistTools_ROOT=$(brew --prefix qt@5)
|
-D Qt5LinguistTools_ROOT=$(brew --prefix qt@5)
|
||||||
@@ -100,82 +114,5 @@ jobs:
|
|||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: '86Box${{ matrix.ui.slug }}${{ matrix.dynarec.slug }}${{ matrix.build.slug }}-macOS-x86_64-gha${{ github.run_number }}'
|
name: '86Box${{ matrix.ui.slug }}${{ matrix.dynarec.slug }}${{ matrix.build.slug }}-macOS${{ matrix.environment.slug }}-gha${{ github.run_number }}'
|
||||||
path: build/artifacts/**
|
|
||||||
|
|
||||||
macos14-arm64:
|
|
||||||
|
|
||||||
name: "${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, arm64"
|
|
||||||
|
|
||||||
runs-on: macos-14
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: true
|
|
||||||
matrix:
|
|
||||||
build:
|
|
||||||
# - name: Regular
|
|
||||||
# preset: regular
|
|
||||||
- name: Debug
|
|
||||||
preset: dev_debug
|
|
||||||
slug: -Debug
|
|
||||||
- name: Dev
|
|
||||||
preset: development
|
|
||||||
slug: -Dev
|
|
||||||
dynarec:
|
|
||||||
# - name: ODR
|
|
||||||
# new: off
|
|
||||||
# slug: -ODR
|
|
||||||
- name: NDR
|
|
||||||
new: on
|
|
||||||
slug: -NDR
|
|
||||||
ui:
|
|
||||||
- name: SDL GUI
|
|
||||||
qt: off
|
|
||||||
static: on
|
|
||||||
- name: Qt GUI
|
|
||||||
qt: on
|
|
||||||
slug: -Qt
|
|
||||||
packages: >-
|
|
||||||
qt@5
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Install dependencies
|
|
||||||
run: >-
|
|
||||||
brew install
|
|
||||||
sdl2
|
|
||||||
rtmidi
|
|
||||||
openal-soft
|
|
||||||
fluidsynth
|
|
||||||
libslirp
|
|
||||||
vde
|
|
||||||
libserialport
|
|
||||||
${{ matrix.ui.packages }}
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
run: >-
|
|
||||||
cmake -G Ninja -S . -B build --preset ${{ matrix.build.preset }}
|
|
||||||
--toolchain ./cmake/llvm-macos-aarch64.cmake
|
|
||||||
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
|
||||||
-D CMAKE_INSTALL_PREFIX=./build/artifacts
|
|
||||||
-D QT=${{ matrix.ui.qt }}
|
|
||||||
-D Qt5_ROOT=$(brew --prefix qt@5)
|
|
||||||
-D Qt5LinguistTools_ROOT=$(brew --prefix qt@5)
|
|
||||||
-D OpenAL_ROOT=$(brew --prefix openal-soft)
|
|
||||||
-D LIBSERIALPORT_ROOT=$(brew --prefix libserialport)
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: cmake --build build
|
|
||||||
|
|
||||||
- name: Generate package
|
|
||||||
run: cmake --install build
|
|
||||||
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: '86Box${{ matrix.ui.slug }}${{ matrix.dynarec.slug }}${{ matrix.build.slug }}-macOS-arm64-gha${{ github.run_number }}'
|
|
||||||
path: build/artifacts/**
|
path: build/artifacts/**
|
||||||
|
|||||||
24
.github/workflows/cmake_windows_msys2.yml
vendored
24
.github/workflows/cmake_windows_msys2.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: CMake (Windows, msys2)
|
name: CMake (Windows)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
||||||
@@ -26,9 +26,9 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
msys2:
|
windows:
|
||||||
|
|
||||||
name: "${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, ${{ matrix.environment.msystem }}"
|
name: "${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, ${{ matrix.environment.msystem }}"
|
||||||
|
|
||||||
runs-on: ${{ matrix.environment.runner }}
|
runs-on: ${{ matrix.environment.runner }}
|
||||||
|
|
||||||
@@ -56,14 +56,15 @@ jobs:
|
|||||||
new: on
|
new: on
|
||||||
slug: -NDR
|
slug: -NDR
|
||||||
ui:
|
ui:
|
||||||
- name: Qt GUI
|
- name: Qt 5 GUI
|
||||||
qt: on
|
qt: on
|
||||||
|
slug: -Qt5
|
||||||
static: on
|
static: on
|
||||||
slug: -Qt
|
|
||||||
packages: >-
|
packages: >-
|
||||||
qt5-base:p
|
qt5-static:p
|
||||||
qt5-tools:p
|
|
||||||
vulkan-headers:p
|
vulkan-headers:p
|
||||||
|
# qt5-base:p
|
||||||
|
# qt5-tools:p
|
||||||
environment:
|
environment:
|
||||||
# - msystem: MSYS
|
# - msystem: MSYS
|
||||||
# toolchain: ./cmake/flags-gcc-x86_64.cmake
|
# toolchain: ./cmake/flags-gcc-x86_64.cmake
|
||||||
@@ -77,10 +78,12 @@ jobs:
|
|||||||
# prefix: mingw-w64-clang-x86_64
|
# prefix: mingw-w64-clang-x86_64
|
||||||
# toolchain: ./cmake/llvm-win32-x86_64.cmake
|
# toolchain: ./cmake/llvm-win32-x86_64.cmake
|
||||||
# slug: "CLANG64"
|
# slug: "CLANG64"
|
||||||
|
# runner: windows-2022
|
||||||
# - msystem: UCRT64
|
# - msystem: UCRT64
|
||||||
# prefix: mingw-w64-ucrt-x86_64
|
# prefix: mingw-w64-ucrt-x86_64
|
||||||
# toolchain: ./cmake/flags-gcc-x86_64.cmake
|
# toolchain: ./cmake/flags-gcc-x86_64.cmake
|
||||||
# slug: "UCRT64"
|
# slug: "UCRT64"
|
||||||
|
# runner: windows-2022
|
||||||
- msystem: CLANGARM64
|
- msystem: CLANGARM64
|
||||||
toolchain: ./cmake/flags-gcc-aarch64.cmake
|
toolchain: ./cmake/flags-gcc-aarch64.cmake
|
||||||
slug: -arm64
|
slug: -arm64
|
||||||
@@ -112,8 +115,7 @@ jobs:
|
|||||||
libslirp:p
|
libslirp:p
|
||||||
fluidsynth:p
|
fluidsynth:p
|
||||||
libserialport:p
|
libserialport:p
|
||||||
qt5-static:p
|
${{ matrix.ui.packages }}
|
||||||
vulkan-headers:p
|
|
||||||
openmp:p
|
openmp:p
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -123,10 +125,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >-
|
run: >-
|
||||||
cmake -G Ninja -S . -B build --preset ${{ matrix.build.preset }}
|
cmake -S . -B build --preset ${{ matrix.build.preset }}
|
||||||
--toolchain ${{ matrix.environment.toolchain }}
|
--toolchain ${{ matrix.environment.toolchain }}
|
||||||
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
-D NEW_DYNAREC=${{ matrix.dynarec.new }}
|
||||||
-D CMAKE_INSTALL_PREFIX=./build/artifacts
|
-D QT=${{ matrix.ui.qt }}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build
|
||||||
|
|||||||
Reference in New Issue
Block a user