-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.47 KB
/
build.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
52
53
name: Makefile CI
#on: workflow_dispatch
on: push
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@main
- name: Fetch Orion's latest commit
env:
GH_TOKEN: ${{ github.token }}
run: |
latest_commit=$(gh api -H 'Accept: application/vnd.github.sha' \
/repos/theos/orion/commits/master); echo "latest_commit=$latest_commit" >> $GITHUB_OUTPUT
id: commit
- uses: actions/cache@v4
id: cache-theos
with:
path: ${{ github.workspace }}/theos
key: steps.commit.outputs.latest_commit
- name: Checkout theos/theos
if: steps.cache-theos.outputs.cache-hit != 'true'
uses: actions/checkout@main
with:
repository: theos/theos
ref: master
submodules: recursive
path: theos
- name: Checkout theos/sdks
uses: actions/checkout@main
with:
repository: theos/sdks
ref: master
sparse-checkout: iPhoneOS15.6.sdk
path: theos/sdks
- name: Build Tweak
run: |
brew install make ldid
export THEOS=theos
THEOS=theos gmake package TARGET="iphone:clang:15.6:15.0" FINALPACKAGE=1
# THEOS=theos gmake package TARGET="iphone:clang:15.6:15.0" FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
path: packages/*.deb