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
|
2021-08-28 07:19:36 +00:00
|
|
|
# cd dist
|
|
|
|
# ls -R
|
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:19:36 +00:00
|
|
|
name: Test-Release-Ubuntu
|
2021-08-28 07:08:11 +00:00
|
|
|
tag_name: v0.1-alpha
|
|
|
|
prerelease: true
|
2021-08-15 09:31:59 +00:00
|
|
|
files: |
|
2021-08-28 07:19:36 +00:00
|
|
|
./tnc/dist/daemon
|
|
|
|
./tnc/dist/tnc
|
2021-08-15 09:31:59 +00:00
|
|
|
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`
|