-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.35 KB
/
main.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
name: CI
on:
push:
pull_request:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
python-version: ['3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Compile ldid
run: |
sudo apt install -y libplist-dev
git clone git://git.saurik.com/ldid.git
g++ -pipe -o ldid/ldid ldid/ldid.cpp -I. -x c ldid/lookup2.c -lcrypto -lplist -Os -fwhole-program -flto -s
echo "${{github.workspace}}/ldid" >> $GITHUB_PATH
- run: npm ci
- run: npm run build
- run: python tests/test.py
- name: Upload to Artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: bin/*.zip
- name: Upload to Release
if: github.event_name == 'release'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bin/*.zip
tag: ${{ github.ref }}
file_glob: true