From 59d8f4b7d388225460b0d9a94012115241aade46 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Fri, 30 Jun 2023 03:18:03 -0400 Subject: [PATCH] Creating a github CI for macOS --- .github/workflows/MacOS.yml | 29 +++++++++++++++++++++++++++++ pkg/apple/GitHubCI.xcconfig | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/MacOS.yml create mode 100644 pkg/apple/GitHubCI.xcconfig diff --git a/.github/workflows/MacOS.yml b/.github/workflows/MacOS.yml new file mode 100644 index 00000000000..b89e70e4b6a --- /dev/null +++ b/.github/workflows/MacOS.yml @@ -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 diff --git a/pkg/apple/GitHubCI.xcconfig b/pkg/apple/GitHubCI.xcconfig new file mode 100644 index 00000000000..31d4268c38b --- /dev/null +++ b/pkg/apple/GitHubCI.xcconfig @@ -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*] = -