Skip to content

Commit

Permalink
Add GitHub Actions workflow for building XADMaster and UniversalDetec…
Browse files Browse the repository at this point in the history
…tor frameworks
  • Loading branch information
J-rg committed Sep 14, 2023
1 parent edd42fa commit f85d8b5
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/xadmaster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: XADMaster

on:
workflow_dispatch:

jobs:
build:
name: Build XADMaster and UniversalDetector frameworks
runs-on: macos-12

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Create build directory
working-directory: ${{github.workspace}}
run: mkdir build
- name: Set Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 13.4.1
- name: Build
working-directory: ${{github.workspace}}/build
run: xcodebuild -project "${{github.workspace}}/Vendor/XADMaster/XADMaster.xcodeproj" -scheme XADMaster -configuration Release -sdk macosx -derivedDataPath DerivedData
- name: Zip framework bundles
working-directory: ${{github.workspace}}/build/DerivedData/Build/Products/Release/
run: zip -y -r XADMaster.zip XADMaster.framework UniversalDetector.framework
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: XADMaster.zip
path: ${{github.workspace}}/build/DerivedData/Build/Products/Release/XADMaster.zip
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,9 @@
[submodule "OpenEmuKit"]
path = OpenEmuKit
url = ../../OpenEmu/OpenEmuKit.git
[submodule "XADMaster"]
path = Vendor/XADMaster
url = https://github.com/MacPaw/XADMaster
[submodule "UniversalDetector"]
path = Vendor/UniversalDetector
url = https://github.com/MacPaw/universal-detector
1 change: 1 addition & 0 deletions Vendor/UniversalDetector
Submodule UniversalDetector added at 4eb832
1 change: 1 addition & 0 deletions Vendor/XADMaster
Submodule XADMaster added at 9d822b

0 comments on commit f85d8b5

Please sign in to comment.