-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1.26 KB
/
package.yml
File metadata and controls
34 lines (32 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI (Package)
on:
push:
branches: [master]
pull_request:
jobs:
package:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install older macOS SDK to build kexts for older systems
run: |
wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.15/MacOSX10.11.sdk.tar.xz
gunzip MacOSX10.11.sdk.tar.xz
tar -xf MacOSX10.11.sdk.tar
rm MacOSX10.11.sdk.tar
sudo ln -s $(pwd)/MacOSX10.11.sdk $(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
- name: Build and package
id: build
run: |
cd "$GITHUB_WORKSPACE"
xcodebuild -project "$PROJECT_PATH" -target "$TARGET" | xcpretty
echo "VERSION=$(xcodebuild -showBuildSettings -project "$PROJECT_PATH" | grep MARKETING_VERSION | head -1 | tr -d '[:alpha:][:space:]_=')" >> $GITHUB_ENV
echo "SHA_SHORT=$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
env:
PROJECT_PATH: WiiController/WiiController.xcodeproj
TARGET: Build DMG
- name: Upload package
uses: actions/upload-artifact@v1
with:
name: WiiController.v${{ env.VERSION }}.git.${{ env.SHA_SHORT }}.dmg
path: ${{ github.workspace }}/WiiController/WiiController.dmg