gha: add build for macOS ARM and x86
Very barebones, doesn't build universal app, doesn't build dmg
This commit is contained in:
parent
2d6cadbf1b
commit
2dc220b42f
3 changed files with 29 additions and 0 deletions
6
.github/workflows/c-cpp.yml
vendored
6
.github/workflows/c-cpp.yml
vendored
|
@ -43,6 +43,12 @@ jobs:
|
||||||
- os: windows-2019 # always use the oldest possible for 32-bit because of older compilers, and better support of certain legacy OSes
|
- os: windows-2019 # always use the oldest possible for 32-bit because of older compilers, and better support of certain legacy OSes
|
||||||
targetos: win32
|
targetos: win32
|
||||||
targetarch: i386
|
targetarch: i386
|
||||||
|
- os: macos-14 # in GitHub documentation, it's an ARM64 machine
|
||||||
|
targetos: apple
|
||||||
|
targetarch: arm64
|
||||||
|
- os: macos-12 # in GitHub documentation, it's an x86 machine
|
||||||
|
targetos: apple
|
||||||
|
targetarch: amd64
|
||||||
env:
|
env:
|
||||||
SDL_VERSION: 2.30.3
|
SDL_VERSION: 2.30.3
|
||||||
GH_CPU_ARCH: ${{ matrix.targetarch }}
|
GH_CPU_ARCH: ${{ matrix.targetarch }}
|
||||||
|
|
14
scripts/gha/build_apple.sh
Executable file
14
scripts/gha/build_apple.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
. scripts/lib.sh
|
||||||
|
|
||||||
|
cd $GITHUB_WORKSPACE || die
|
||||||
|
|
||||||
|
pushd hlsdk || die
|
||||||
|
./waf configure build install --destdir=../bin || die
|
||||||
|
popd
|
||||||
|
|
||||||
|
./waf configure --enable-utils --enable-tests --enable-lto build install --destdir=bin || die_configure
|
||||||
|
|
||||||
|
mkdir -p artifacts/
|
||||||
|
tar -cJvf artifacts/ash3d-fwgs-apple-$ARCH.tar.xz -C bin . # skip the bin directory from resulting tar archive
|
9
scripts/gha/deps_apple.sh
Executable file
9
scripts/gha/deps_apple.sh
Executable file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd $GITHUB_WORKSPACE
|
||||||
|
|
||||||
|
wget http://libsdl.org/release/SDL2-$SDL_VERSION.dmg -O SDL2.dmg
|
||||||
|
hdiutil mount SDL2.dmg
|
||||||
|
sudo cp -vr /Volumes/SDL2/SDL2.framework /Library/Frameworks
|
||||||
|
|
||||||
|
git clone https://github.com/FWGS/hlsdk-portable hlsdk --depth=1
|
Loading…
Add table
Reference in a new issue