mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ci: Add iOS builds
This commit is contained in:
20
scripts/gha/build_ios.sh
Executable file
20
scripts/gha/build_ios.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
. scripts/lib.sh
|
||||
|
||||
cd $GITHUB_WORKSPACE || die
|
||||
|
||||
./waf configure --enable-utils --enable-lto --ios build install --destdir=build/ios || die_configure
|
||||
|
||||
cp -vr /Library/Frameworks/SDL2.framework ./build
|
||||
|
||||
pushd hlsdk || die
|
||||
cmake -DCMAKE_SYSTEM_NAME=iOS -DGAMEDIR=$(realpath ../build/ios) -DCMAKE_BUILD_TYPE=Debug -B build -S .
|
||||
cmake --build build --target install || die
|
||||
popd
|
||||
|
||||
./scripts/ios/createipa.sh
|
||||
|
||||
mkdir -p artifacts/
|
||||
mv "build/xash3d.ipa" "build/xash3d-fwgs-ios-arm64.ipa"
|
||||
cp "build/xash3d-fwgs-ios-arm64.ipa" artifacts
|
||||
13
scripts/gha/deps_ios.sh
Normal file
13
scripts/gha/deps_ios.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
git clone https://github.com/libsdl-org/SDL -b SDL2
|
||||
|
||||
cd SDL/Xcode/SDL
|
||||
xcodebuild -scheme xcFramework-iOS -target xcFramework-iOS build -configuration Release
|
||||
sudo cp -vr Products/SDL2.xcframework/ios-arm64/SDL2.framework /Library/Frameworks
|
||||
|
||||
cd $GITHUB_WORKSPACE
|
||||
|
||||
git clone https://github.com/FWGS/hlsdk-portable hlsdk --depth=1
|
||||
Reference in New Issue
Block a user