-
Notifications
You must be signed in to change notification settings - Fork 9
58 lines (48 loc) · 1.27 KB
/
build-linux.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
54
55
56
57
58
name: build-linux
on:
workflow_call:
jobs:
linux:
name: linux
runs-on: ubuntu-latest
steps:
- name: repo
uses: actions/checkout@v3
with:
path: svl
fetch-depth: 0
- name: python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: git
run: |
git config --global user.email "[email protected]"
git config --global user.name "apollo3-uploader-builder"
git config --global pull.ff only
cd svl
git pull
cd ${GITHUB_WORKSPACE}
- name: install
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
pip install -r svl/requirements.txt
- name: build
run: |
pyinstaller --onefile svl/svl.py
- name: copy
run: |
rm -rf ./svl/dist/linux
mkdir -p ./svl/dist/linux
mv ./dist/svl ./svl/dist/linux/svl
- name: permit
run: |
chmod +x ./svl/dist/linux/svl
- name: commit
run: |
cd ./svl
git add ./dist/linux/*
git commit -m "generated linux executable"
git push
cd ${GITHUB_WORKSPACE}