2023-06-30 03:18:03 -04:00
|
|
|
name: CI macOS
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2024-07-06 20:04:13 +02:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
|
|
|
|
|
2023-06-30 03:18:03 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Compile RA
|
|
|
|
run: |
|
2023-07-01 16:56:17 -04:00
|
|
|
set -o pipefail
|
2023-06-30 03:18:03 -04:00
|
|
|
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
|