Skip to content

Commit

Permalink
Files to build binaries for macos and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
code2k13 authored Jan 7, 2023
1 parent f016208 commit 9bbacdd
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create Binaries for Linux

on:
push:
tags:
- '*linux'


jobs:
deploy:

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build binary
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
- name: list files
run: ls -alh dist/
- name: create tar.gz
run: |
cp -r weights dist/weights
cp LICENSE dist/
cp releasenotes.md dist/
tar -czvf starrem2k13_ubuntu_20.04.tar.gz dist/*
- uses: ncipollo/release-action@v1
with:
artifacts: "starrem2k13_ubuntu_20.04.tar.gz"
bodyFile: "releasenotes.md"
39 changes: 39 additions & 0 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create Binaries for MacOS

on:
push:
tags:
- '*macos'


jobs:
deploy:

runs-on: macos-12

steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build binary
run: pyinstaller --onefile starrem2k13.py -i starrem.ico
- name: list files
run: ls -alh dist/
- name: create tar.gz
run: |
cp -r weights dist/weights
cp LICENSE dist/
cp releasenotes.md dist/
tar -czvf starrem2k13_macos_12.tar.gz dist/*
- uses: ncipollo/release-action@v1
with:
artifacts: "starrem2k13_macos_12.tar.gz"
bodyFile: "releasenotes.md"

0 comments on commit 9bbacdd

Please sign in to comment.