foo #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build targets | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
windows-build: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [windows-multi-x64] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-tags: true | |
- name: Setup vcpkg (it does not install any package yet) | |
uses: lukka/run-vcpkg@v11 | |
- name: Run CMake | |
uses: lukka/run-cmake@v10 | |
with: | |
configurePreset: "msbuild-vcpkg-x64" | |
buildPreset: "msbuild-vcpkg-x64-release" | |
- name: Archive client | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }} | |
path: "cmake-build-presets/msbuild-vcpkg-x64/Release/ezquake.exe" | |
compression-level: 9 | |
macos-build: | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
arch: [x64, arm64] | |
variant: [release] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-tags: true | |
- name: Install build system dependencies | |
run: brew install autoconf automake libtool | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@v11 | |
- name: Run CMake | |
uses: lukka/run-cmake@v10 | |
with: | |
configurePreset: "xcode-vcpkg-${{ matrix.arch }}-${{ matrix.variant }}-ci" | |
buildPreset: "xcode-vcpkg-${{ matrix.arch }}-${{ matrix.variant }}-ci" | |
- name: Prepare upload | |
run: zip -r ../../../ezQuake.zip ezQuake.app | |
working-directory: "cmake-build-presets/xcode-vcpkg-${{ matrix.arch }}-${{ matrix.variant }}-ci/${{ matrix.variant }}" | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "ezQuake-macOS-${{ matrix.arch }}" | |
path: ezQuake.zip | |
compression-level: 9 | |
macos-universal: | |
needs: macos-build | |
runs-on: macos-13 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-tags: true | |
- name: Download Intel Build | |
uses: actions/download-artifact@v4 | |
with: | |
name: "ezQuake-macOS-x64" | |
path: artifacts/x64 | |
- name: Download ARM64 Build | |
uses: actions/download-artifact@v4 | |
with: | |
name: "ezQuake-macOS-arm64" | |
path: artifacts/arm64 | |
- name: Create Universal Binary | |
run: | | |
(cd artifacts/x64 && unzip -qq ezQuake.zip) && (cd artifacts/arm64 && unzip -qq ezQuake.zip) | |
cp -r artifacts/arm64/ezQuake.app . | |
lipo -create -output ezQuake.app/Contents/MacOS/ezQuake \ | |
artifacts/x64/ezQuake.app/Contents/MacOS/ezQuake \ | |
artifacts/arm64/ezQuake.app/Contents/MacOS/ezQuake | |
codesign --force --sign - --entitlements misc/install/ezquake.entitlements.plist --options runtime --timestamp ezQuake.app | |
zip -r ezQuake.zip ezQuake.app | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "ezQuake-macOS-universal-sandboxed" | |
path: ezQuake.zip | |
compression-level: 9 | |
linux-build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [linux-x86_64] | |
include: | |
- target: linux-x86_64 | |
platform: x86_64 | |
container: | |
image: debian:testing | |
options: --privileged | |
steps: | |
- name: Install dependencies | |
run: apt-get -qy update && apt-get -qy install curl file libfuse2 git make sudo git | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build | |
run: git config --global --add safe.directory $PWD && ./misc/appimage/appimage-manual_creation.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }}-AppImage | |
path: ezQuake-${{ matrix.platform }}.AppImage | |
compression-level: 9 |