Use StructManager to manage Deci2Handlers. #2304
Workflow file for this run
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 iOS | |
on: [push, pull_request] | |
jobs: | |
build_ios: | |
runs-on: macos-latest | |
steps: | |
- name: Install dpkg | |
run: | | |
brew install dpkg | |
- name: Install Vulkan SDK | |
run: | | |
cd $RUNNER_WORKSPACE | |
curl -L --show-error --output vulkansdk.dmg https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION}/mac/vulkansdk-macos-${VULKAN_SDK_VERSION}.dmg?Human=true | |
hdiutil attach vulkansdk.dmg | |
sudo /Volumes/vulkansdk-macos-${VULKAN_SDK_VERSION}/InstallVulkan.app/Contents/MacOS/InstallVulkan in --al --c | |
echo "VULKAN_SDK=~/VulkanSDK/${VULKAN_SDK_VERSION}/macOS" >> $GITHUB_ENV | |
env: | |
VULKAN_SDK_VERSION: '1.3.268.1' | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Force Fetch Git Tags | |
run: git fetch --tags --force | |
- name: Set SHORT_HASH | |
run: echo "VALUE=${LONG_HASH:0:8}" >> $GITHUB_OUTPUT | |
id: short_hash | |
env: | |
LONG_HASH: ${{ github.sha }} | |
- name: Generate CMake Project | |
run: | | |
mkdir build | |
cd build | |
cmake .. -G"Xcode" -DCMAKE_TOOLCHAIN_FILE=../deps/Dependencies/cmake-ios/ios.cmake -DTARGET_IOS=ON -DCMAKE_PREFIX_PATH=$VULKAN_SDK -DBUILD_PSFPLAYER=ON -DBUILD_LIBRETRO_CORE=yes | |
- name: Build | |
run: | | |
cd build | |
cmake --build . --config Release | |
codesign -s "-" Source/ui_ios/Release-iphoneos/Play.app | |
- name: Generate IPA | |
run: | | |
cd installer_ios | |
./build_ipa.sh | |
- name: Generate Cydia Package | |
run: | | |
cd installer_ios | |
./build_cydia.sh | |
- name: Upload a Build Artifact ipa/deb/bz2 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Play_iOS | |
path: | | |
installer_ios/Play.ipa | |
installer_ios/Play.deb | |
installer_ios/Packages.bz2 | |
- name: Upload a Build Artifact libretro | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Play_iOS_libretro | |
path: build/Source/ui_libretro/Release-iphoneos/play_libretro_ios.dylib | |
- name: Upload to S3 | |
if: ${{ env.AWS_ACCESS_KEY_ID != null}} | |
run: | | |
aws s3 cp installer_ios/Play.ipa s3://playbuilds/$SHORT_HASH/Play.ipa --acl public-read | |
aws s3 cp installer_ios/Play.deb s3://playbuilds/$SHORT_HASH/Play.deb --acl public-read | |
aws s3 cp installer_ios/Packages.bz2 s3://playbuilds/$SHORT_HASH/Packages.bz2 --acl public-read | |
aws s3 cp build/Source/ui_libretro/Release-iphoneos/play_libretro_ios.dylib s3://playbuilds/$SHORT_HASH/play_libretro_ios.dylib --acl public-read | |
env: | |
SHORT_HASH: ${{ steps.short_hash.outputs.VALUE }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-east-2' |