Skip to content

Commit 9bbacdd

Browse files
authored
Files to build binaries for macos and linux
1 parent f016208 commit 9bbacdd

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/build_linux.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Create Binaries for Linux
2+
3+
on:
4+
push:
5+
tags:
6+
- '*linux'
7+
8+
9+
jobs:
10+
deploy:
11+
12+
runs-on: ubuntu-20.04
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
lfs: true
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.10'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
- name: Build binary
27+
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
28+
- name: list files
29+
run: ls -alh dist/
30+
- name: create tar.gz
31+
run: |
32+
cp -r weights dist/weights
33+
cp LICENSE dist/
34+
cp releasenotes.md dist/
35+
tar -czvf starrem2k13_ubuntu_20.04.tar.gz dist/*
36+
- uses: ncipollo/release-action@v1
37+
with:
38+
artifacts: "starrem2k13_ubuntu_20.04.tar.gz"
39+
bodyFile: "releasenotes.md"

.github/workflows/build_macos.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Create Binaries for MacOS
2+
3+
on:
4+
push:
5+
tags:
6+
- '*macos'
7+
8+
9+
jobs:
10+
deploy:
11+
12+
runs-on: macos-12
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
lfs: true
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.10'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
- name: Build binary
27+
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
28+
- name: list files
29+
run: ls -alh dist/
30+
- name: create tar.gz
31+
run: |
32+
cp -r weights dist/weights
33+
cp LICENSE dist/
34+
cp releasenotes.md dist/
35+
tar -czvf starrem2k13_macos_12.tar.gz dist/*
36+
- uses: ncipollo/release-action@v1
37+
with:
38+
artifacts: "starrem2k13_macos_12.tar.gz"
39+
bodyFile: "releasenotes.md"

0 commit comments

Comments
 (0)