mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
github action cleanup and update
This commit is contained in:
parent
9bdb6c569d
commit
278255a6fd
4 changed files with 2 additions and 115 deletions
3
.github/workflows/build-project.yml
vendored
3
.github/workflows/build-project.yml
vendored
|
@ -51,7 +51,8 @@ jobs:
|
|||
if: matrix.os == 'windows-latest'
|
||||
working-directory: tnc
|
||||
run: |
|
||||
pyinstaller -F daemon.py -n daemon
|
||||
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
|
||||
|
|
49
.github/workflows/build-tnc.yml
vendored
49
.github/workflows/build-tnc.yml
vendored
|
@ -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`
|
42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
|
@ -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') }}
|
23
.github/workflows/pylint.yml
vendored
23
.github/workflows/pylint.yml
vendored
|
@ -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`
|
Loading…
Reference in a new issue