Switch macOS builds to Qt 6.4.2 to support UI dark mode

Try #2

Try #3

Try #4

Try #5

Try #6

Try #7
This commit is contained in:
Nikolaj Schlej 2023-02-12 10:37:42 -08:00
parent 6232836fb6
commit 11e00f7113

View File

@ -9,7 +9,7 @@ on:
jobs: jobs:
build_mac: build_mac:
name: Build on macOS 12 name: Build on macOS 12 (universal, static Qt 6.4.2)
runs-on: macos-12 runs-on: macos-12
env: env:
HAS_QT: 1 HAS_QT: 1
@ -18,15 +18,32 @@ jobs:
- name: Get Qt - name: Get Qt
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: LongSoft/qt-5.6.3-static-universal-macos-sdk12.3 repository: LongSoft/qt-6.4.2-static-universal-macos12.3
path: qt path: qt
lfs: true lfs: true
- name: Unpack Qt - name: Unpack Qt
shell: bash shell: bash
working-directory: qt working-directory: qt
run: sudo unzip -q qt-5.6.3-static-universal-macos-sdk12.3.zip -d/opt && echo "/opt/qt56sm/bin" >> $GITHUB_PATH run: sudo unzip -q qt-6.4.2-static-universal-macos12.3.zip -d/opt
- name: Create build directory
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure everything
working-directory: ${{runner.workspace}}/build
run: cmake -DCMAKE_PREFIX_PATH="/opt/qt-6.4.2-static-universal-macos12.3" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ../UEFITool
- name: Build everything - name: Build everything
run: ./unixbuild.sh working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config Release
- name: Create dist directory
run: cmake -E make_directory ${{runner.workspace}}/UEFITool/dist
- name: Archive everything
working-directory: ${{runner.workspace}}/build
shell: bash
run: |
UEFITOOL_VER=$(cat ../UEFITool/version.h | grep PROGRAM_VERSION | cut -d'"' -f2 | sed 's/NE alpha /A/') ; \
zip -qry ../UEFITool/dist/UEFIExtract_NE_${UEFITOOL_VER}_universal_mac.zip UEFIExtract/UEFIExtract
zip -qry ../UEFITool/dist/UEFIFind_NE_${UEFITOOL_VER}_universal_mac.zip UEFIFind/UEFIFind
zip -qry ../UEFITool/dist/UEFITool_NE_${UEFITOOL_VER}_universal_mac.zip UEFITool/UEFITool.app
- name: Upload to artifacts - name: Upload to artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
@ -42,7 +59,7 @@ jobs:
file_glob: true file_glob: true
build_linux: build_linux:
name: Build on Ubuntu 20.04 LTS name: Build on Ubuntu 20.04 LTS (Qt 5)
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env: env:
HAS_QT: 1 HAS_QT: 1
@ -67,7 +84,7 @@ jobs:
file_glob: true file_glob: true
build_linux_sanitizers: build_linux_sanitizers:
name: Build on Ubuntu Latest with Clang sanitizers name: Build on Ubuntu Latest with Clang sanitizers (Qt 6)
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
HAS_QT: 1 HAS_QT: 1
@ -90,7 +107,7 @@ jobs:
path: build/UEFITool path: build/UEFITool
build_linux_meson: build_linux_meson:
name: Build on Ubuntu Latest with Meson name: Build on Ubuntu Latest with Meson (Qt 5)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -104,7 +121,7 @@ jobs:
run: ninja -C build-meson run: ninja -C build-meson
build_freebsd: build_freebsd:
name: Build on FreeBSD name: Build on FreeBSD (Qt 5)
runs-on: macos-12 runs-on: macos-12
env: env:
HAS_QT: 1 HAS_QT: 1
@ -135,7 +152,7 @@ jobs:
file_glob: true file_glob: true
build_windows_64: build_windows_64:
name: Build on Windows 2022 (64-bit) name: Build on Windows 2022 (64-bit, static Qt 6.4.2)
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -180,7 +197,7 @@ jobs:
file_glob: true file_glob: true
build_windows_32: build_windows_32:
name: Build on Windows 2019 (32-bit) name: Build on Windows 2019 (32-bit, static Qt 5.6.3)
runs-on: windows-2019 runs-on: windows-2019
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -262,14 +279,14 @@ jobs:
file_glob: true file_glob: true
build_windows_mingw: build_windows_mingw:
name: Build on Windows Latest with MinGW name: Build on Windows Latest with MinGW (Qt 6.4.2)
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: '6.3.1' version: '6.4.2'
host: 'windows' host: 'windows'
target: 'desktop' target: 'desktop'
arch: 'win64_mingw' arch: 'win64_mingw'
@ -284,13 +301,13 @@ jobs:
JOB_TYPE: COVERITY JOB_TYPE: COVERITY
HAS_QT: 1 HAS_QT: 1
if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request' if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request'
name: Coverity Static Analysis on Ubuntu Latest name: Coverity Static Analysis on Ubuntu Latest (Qt 6.4.2)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: '6.3.1' version: '6.4.2'
host: 'linux' host: 'linux'
target: 'desktop' target: 'desktop'
- name: CI Bootstrap - name: CI Bootstrap
@ -308,13 +325,13 @@ jobs:
analyze_pvs_studio_and_codeql: analyze_pvs_studio_and_codeql:
if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request' if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request'
name: PVS-Studio and CodeQL Static Analysis on Ubuntu Latest name: PVS-Studio and CodeQL Static Analysis on Ubuntu Latest (Qt 6.4.2)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: '6.3.1' version: '6.4.2'
host: 'linux' host: 'linux'
target: 'desktop' target: 'desktop'
- name: Check out - name: Check out
@ -352,7 +369,7 @@ jobs:
analyze_sonarcloud: analyze_sonarcloud:
if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request' if: github.repository_owner == 'LongSoft' && github.event_name != 'pull_request'
name: SonarCloud Static Analysis on Ubuntu Latest name: SonarCloud Static Analysis on Ubuntu Latest (Qt 6.4.2)
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
SONAR_SCANNER_VERSION: 4.7.0.2747 SONAR_SCANNER_VERSION: 4.7.0.2747
@ -362,7 +379,7 @@ jobs:
- name: Install Qt - name: Install Qt
uses: jurplel/install-qt-action@v3 uses: jurplel/install-qt-action@v3
with: with:
version: '6.3.1' version: '6.4.2'
host: 'linux' host: 'linux'
target: 'desktop' target: 'desktop'
- uses: actions/checkout@v3 - uses: actions/checkout@v3