-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (49 loc) · 1.66 KB
/
release.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Create Release
on:
push:
tags:
- '*'
jobs:
release:
# needed to be able to create a Release
permissions:
contents: write
# We need to use an old runner for Xcode 11.7
runs-on: macos-11
steps:
- uses: actions/checkout@v4
with:
submodules: true
path: orion
- name: Set Up Dependencies
id: setup
run: |
brew install ldid make fakeroot
echo "THEOS=${GITHUB_WORKSPACE}/theos" >> "${GITHUB_ENV}"
echo "PATH=/usr/local/opt/make/libexec/gnubin:${PATH}" >> "${GITHUB_ENV}"
echo "version=${GITHUB_REF#refs/tags/}" >> "${GITHUB_OUTPUT}"
- name: Install Theos
uses: actions/checkout@v4
with:
repository: theos/theos
path: theos
submodules: recursive
- name: Build Release
run: |
cd orion
# Orion doesnt build with 12.5 atm due to a compiler bug (SR-14535)
DEVELOPER_DIR=/Applications/Xcode_12.4.app/Contents/Developer make clean package FINALPACKAGE=1
DEVELOPER_DIR=/Applications/Xcode_12.4.app/Contents/Developer make clean package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
DEVELOPER_DIR=/Applications/Xcode_11.7.app/Contents/Developer make clean package FINALPACKAGE=1
cd packages
zip -yr9 Orion_${{ steps.setup.outputs.version }}.zip *
- name: Create Release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create ${{ github.ref_name }} \
--verify-tag \
--draft \
--repo ${{ github.repository }} \
--title '${{ steps.setup.outputs.version }}' \
orion/packages/Orion_${{ steps.setup.outputs.version }}.zip