FreeDATA/.github/workflows/build-tnc.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

2021-08-13 19:17:15 +00:00
2021-08-15 09:31:59 +00:00
name: Build/TNC
on: push
2021-08-13 19:17:15 +00:00
jobs:
2021-08-15 09:31:59 +00:00
ubuntu-latest:
runs-on: ubuntu-latest
2021-08-13 19:27:39 +00:00
steps:
2021-08-15 09:31:59 +00:00
- 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
2021-08-13 19:27:39 +00:00
2021-08-15 09:31:59 +00:00
- name: Release
uses: softprops/action-gh-release@v1
2021-08-28 07:03:36 +00:00
# if: startsWith(github.ref, 'refs/tags/')
2021-08-15 09:31:59 +00:00
with:
2021-08-28 07:03:36 +00:00
name: Test-Release
2021-08-15 09:31:59 +00:00
prerelease: false
files: |
dist/daemon
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`