Creating a github CI for macOS

This commit is contained in:
Eric Warmenhoven 2023-06-30 03:18:03 -04:00 committed by LibretroAdmin
parent ce49bd6dcc
commit 8c9ee021e7
2 changed files with 41 additions and 0 deletions

29
.github/workflows/MacOS.yml vendored Normal file
View File

@ -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

View File

@ -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*] = -