Merge pull request #3012 from jriwanek-forks/buildsystem
(GHA) Buildsystem updates
This commit is contained in:
20
.github/workflows/c-cpp.yml
vendored
20
.github/workflows/c-cpp.yml
vendored
@@ -58,19 +58,21 @@ jobs:
|
|||||||
- name: Prepare MSYS2 environment
|
- name: Prepare MSYS2 environment
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
release: false
|
||||||
update: true
|
update: true
|
||||||
msystem: ${{ matrix.environment.msystem }}
|
msystem: ${{ matrix.environment.msystem }}
|
||||||
install: >-
|
install: >-
|
||||||
make
|
make
|
||||||
${{ matrix.environment.prefix }}-gcc
|
pacboy: >-
|
||||||
${{ matrix.environment.prefix }}-pkg-config
|
gcc:p
|
||||||
${{ matrix.environment.prefix }}-freetype
|
pkg-config:p
|
||||||
${{ matrix.environment.prefix }}-SDL2
|
freetype:p
|
||||||
${{ matrix.environment.prefix }}-zlib
|
SDL2:p
|
||||||
${{ matrix.environment.prefix }}-libpng
|
zlib:p
|
||||||
${{ matrix.environment.prefix }}-openal
|
libpng:p
|
||||||
${{ matrix.environment.prefix }}-rtmidi
|
openal:p
|
||||||
${{ matrix.environment.prefix }}-libvncserver
|
rtmidi:p
|
||||||
|
libvncserver:p
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: make
|
- name: make
|
||||||
run: >-
|
run: >-
|
||||||
|
29
.github/workflows/cmake.yml
vendored
29
.github/workflows/cmake.yml
vendored
@@ -76,13 +76,14 @@ jobs:
|
|||||||
- name: Prepare MSYS2 environment
|
- name: Prepare MSYS2 environment
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
|
release: false
|
||||||
update: true
|
update: true
|
||||||
msystem: ${{ matrix.environment.msystem }}
|
msystem: ${{ matrix.environment.msystem }}
|
||||||
pacboy: >-
|
pacboy: >-
|
||||||
ninja:p
|
ninja:p
|
||||||
cmake:p
|
cmake:p
|
||||||
gcc:p
|
gcc:p
|
||||||
pkg-config:p
|
pkgconf:p
|
||||||
freetype:p
|
freetype:p
|
||||||
SDL2:p
|
SDL2:p
|
||||||
zlib:p
|
zlib:p
|
||||||
@@ -210,7 +211,7 @@ jobs:
|
|||||||
path: build/artifacts/**
|
path: build/artifacts/**
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
name: "Linux GCC 11 (Qt GUI, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, x86_64)"
|
name: "Linux GCC 11 (${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, x86_64)"
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
@@ -231,6 +232,13 @@ jobs:
|
|||||||
- name: NDR
|
- name: NDR
|
||||||
new: on
|
new: on
|
||||||
slug: -NDR
|
slug: -NDR
|
||||||
|
ui:
|
||||||
|
- name: Qt GUI
|
||||||
|
qt: on
|
||||||
|
slug: -Qt
|
||||||
|
packages: >-
|
||||||
|
qtbase5-dev
|
||||||
|
qttools5-dev
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -243,10 +251,9 @@ jobs:
|
|||||||
libpng-dev
|
libpng-dev
|
||||||
libc6-dev
|
libc6-dev
|
||||||
librtmidi-dev
|
librtmidi-dev
|
||||||
qtbase5-dev
|
|
||||||
qttools5-dev
|
|
||||||
libopenal-dev
|
libopenal-dev
|
||||||
libvncserver-dev
|
libvncserver-dev
|
||||||
|
${{ matrix.ui.packages }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >-
|
run: >-
|
||||||
@@ -260,11 +267,11 @@ jobs:
|
|||||||
run: cmake --install build
|
run: cmake --install build
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: '86Box-Qt${{ matrix.dynarec.slug }}${{ matrix.build.slug }}-UbuntuJammy-x86_64-gha${{ github.run_number }}'
|
name: '86Box-{{ matrix.ui.slug }}${{ matrix.dynarec.slug }}${{ matrix.build.slug }}-UbuntuJammy-x86_64-gha${{ github.run_number }}'
|
||||||
path: build/artifacts/**
|
path: build/artifacts/**
|
||||||
|
|
||||||
macos11:
|
macos11:
|
||||||
name: "macOS 11 (Qt GUI, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, x86_64)"
|
name: "macOS 11 (${{ matrix.ui.name }}, ${{ matrix.build.name }}, ${{ matrix.dynarec.name }}, x86_64)"
|
||||||
|
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
|
|
||||||
@@ -285,6 +292,12 @@ jobs:
|
|||||||
- name: NDR
|
- name: NDR
|
||||||
new: on
|
new: on
|
||||||
slug: -NDR
|
slug: -NDR
|
||||||
|
ui:
|
||||||
|
- name: Qt GUI
|
||||||
|
qt: on
|
||||||
|
slug: -Qt
|
||||||
|
packages: >-
|
||||||
|
qt@5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -295,9 +308,9 @@ jobs:
|
|||||||
sdl2
|
sdl2
|
||||||
libpng
|
libpng
|
||||||
rtmidi
|
rtmidi
|
||||||
qt@5
|
|
||||||
openal-soft
|
openal-soft
|
||||||
libvncserver
|
libvncserver
|
||||||
|
${{ matrix.ui.packages }}
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: >-
|
run: >-
|
||||||
@@ -314,5 +327,5 @@ jobs:
|
|||||||
run: cmake --install build
|
run: cmake --install build
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: '86Box-Qt${{ 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-x86_64-gha${{ github.run_number }}'
|
||||||
path: build/artifacts/**
|
path: build/artifacts/**
|
||||||
|
@@ -88,7 +88,7 @@ discord_update_activity(int paused)
|
|||||||
*(paren - 1) = '\0';
|
*(paren - 1) = '\0';
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) && !defined (__clang__)
|
||||||
# pragma GCC diagnostic ignored "-Wformat-truncation"
|
# pragma GCC diagnostic ignored "-Wformat-truncation"
|
||||||
#endif
|
#endif
|
||||||
if (strlen(vm_name) < 100) {
|
if (strlen(vm_name) < 100) {
|
||||||
|
Reference in New Issue
Block a user