mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
115 lines
2.7 KiB
YAML
115 lines
2.7 KiB
YAML
|
name: Linux Nightly
|
||
|
on:
|
||
|
push:
|
||
|
#tags:
|
||
|
#- '*'
|
||
|
|
||
|
jobs:
|
||
|
build_linux_release:
|
||
|
name: Build Linux release
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
os: [macos-10.15]
|
||
|
include:
|
||
|
- os: macos-10.15
|
||
|
zip_name: ubuntu_tnc
|
||
|
generator: Unix Makefiles
|
||
|
|
||
|
steps:
|
||
|
- name: Checkout code
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
ref: ls-leave-prototype
|
||
|
|
||
|
- name: Set up Python 3.9
|
||
|
uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: 3.9
|
||
|
|
||
|
|
||
|
|
||
|
- name: Install Linux dependencies
|
||
|
if: matrix.os == 'macos-10.15'
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip3 install pyaudio
|
||
|
pip3 install psutil
|
||
|
pip3 install crcengine
|
||
|
pip3 install pyinstaller
|
||
|
pip3 install ujson
|
||
|
pip3 install pyserial
|
||
|
pip3 install numpy
|
||
|
pip3 install structlog
|
||
|
|
||
|
- name: Install Portaudio
|
||
|
if: matrix.os == 'macos-10.15'
|
||
|
run: |
|
||
|
xcode-select --install
|
||
|
brew remove portaudio
|
||
|
brew install portaudio
|
||
|
pip3 install pyaudio
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
- name: Build codec2 Linux
|
||
|
if: matrix.os == 'macos-10.15'
|
||
|
working-directory: tnc
|
||
|
run: |
|
||
|
git clone https://github.com/drowe67/codec2.git
|
||
|
cd codec2 && mkdir build_mac && cd build_mac
|
||
|
cmake ../
|
||
|
make
|
||
|
|
||
|
|
||
|
- name: Build Linux Daemon
|
||
|
if: matrix.os == 'macos-10.15'
|
||
|
working-directory: tnc
|
||
|
run: |
|
||
|
pyinstaller freedata.spec
|
||
|
|
||
|
- name: LIST ALL FILES
|
||
|
shell: bash
|
||
|
run: |
|
||
|
ls -R
|
||
|
|
||
|
|
||
|
- name: Compress
|
||
|
shell: bash
|
||
|
run: |
|
||
|
cd ./tnc/dist
|
||
|
mkdir compressed
|
||
|
zip -r ./compressed/${{ matrix.zip_name }}.zip *
|
||
|
|
||
|
- name: Upload macOS TNC artifacts
|
||
|
uses: actions/upload-artifact@v2
|
||
|
with:
|
||
|
name: tnc-artifact
|
||
|
path: ./tnc/dist/compressed/*
|
||
|
|
||
|
- name: Copy TNC to GUI
|
||
|
if: matrix.os == 'macos-10.15'
|
||
|
run: |
|
||
|
cp -R ./tnc/dist/tnc ./gui/tnc
|
||
|
ls -R
|
||
|
|
||
|
- name: Install Node.js, NPM and Yarn
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: 14
|
||
|
|
||
|
|
||
|
- name: Build/release Electron app
|
||
|
uses: samuelmeuli/action-electron-builder@v1
|
||
|
with:
|
||
|
package_root: "./gui/"
|
||
|
github_token: ${{ secrets.github_token }}
|
||
|
|
||
|
- name: LIST ALL FILES
|
||
|
shell: bash
|
||
|
run: |
|
||
|
ls -R
|