Skip to content

Commit

Permalink
Creating a github CI for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Jun 30, 2023
1 parent 4d8f021 commit 59d8f4b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/MacOS.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI macOS

on:
push:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Compile RA
run: |
xcodebuild -workspace pkg/apple/RetroArch.xcworkspace -scheme RetroArch -config Release -xcconfig pkg/apple/GitHubCI.xcconfig -derivedDataPath build | xcpretty --color
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT

- uses: actions/upload-artifact@v3
with:
name: RetroArch-${{ steps.slug.outputs.sha8 }}
path: |
build/Build/Products/Release
12 changes: 12 additions & 0 deletions pkg/apple/GitHubCI.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// GitLabCI.xcconfig
// RetroArch_Metal
//
//

// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974

#include "Metal.xcconfig"
// TODO: this does not produce a usable build as it is not properly signed
CODE_SIGN_IDENTITY[sdk=macosx*] = -

0 comments on commit 59d8f4b

Please sign in to comment.