FreeDATA/.github/workflows/build-tnc.yml
2021-08-28 09:19:36 +02:00

49 lines
1.3 KiB
YAML

name: Build/TNC
on: push
jobs:
ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt install portaudio19-dev
python -m pip install --upgrade pip
pip3 install pyaudio
pip3 install psutil
pip3 install crcengine
pip3 install pyinstaller
- name: Build with Pyinstaller
working-directory: tnc
run: |
pyinstaller -F daemon.py -n daemon
pyinstaller -F main.py -n tnc
# cd dist
# ls -R
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
name: Test-Release-Ubuntu
tag_name: v0.1-alpha
prerelease: true
files: |
./tnc/dist/daemon
./tnc/dist/tnc
LICENSE
#- name: Save build artifacts to Action
# uses: actions/upload-artifact@v2
# with:
# name: ubuntu-latest
# path: ./tnc/dist/
# if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`