github action cleanup and update

This commit is contained in:
dj2ls 2022-01-11 15:16:50 +01:00
parent 9bdb6c569d
commit 278255a6fd
4 changed files with 2 additions and 115 deletions

View file

@ -52,6 +52,7 @@ jobs:
working-directory: tnc
run: |
pyinstaller -F daemon.py -n daemon
pyinstaller -F main.py -n tnc
#pyinstaller -F --add-binary libcodec2.dll;. --add-binary hamlib/windows/hamlib-4.dll;. --add-binary hamlib/linux/Hamlib.py:. -n tnc main.py
- name: LIST ALL FILES

View file

@ -1,49 +0,0 @@
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`

View file

@ -1,42 +0,0 @@
name: Build/release
on: push
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
package_manager: [npm]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install test app dependencies
run: |
cd ${{ matrix.package_root }}
${{ matrix.package_manager }} install
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
package_root: "./gui/"
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}

View file

@ -1,23 +0,0 @@
name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
working-directory: tnc
run: |
pylint `ls -R|grep .py$|xargs`