-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23c5e13
commit bd27ba9
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode.app | ||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build macOS | ||
run: xcodebuild -scheme EasyMetalShader build -destination "generic/platform=macOS" | ||
- name: Build iOS | ||
run: xcodebuild -scheme EasyMetalShader build -destination "generic/platform=iOS" | ||
test: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Test macOS | ||
run: xcodebuild -scheme EasyMetalShader test -destination "platform=macOS,arch=x86_64" | ||
- name: Test iOS | ||
run: xcodebuild -scheme EasyMetalShader test -destination "name=iPhone 14 Pro" | ||
build-examples: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build macOS Example | ||
run: cd Examples/ExampleMacOS && xcodebuild -scheme ExampleMacOS build -destination "generic/platform=macOS" | ||
- name: Build iOS Example | ||
run: cd Examples/ExampleiOS && xcodebuild -scheme ExampleiOS build -destination "name=iPhone 14 Pro" |