mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Update build-project.yml
This commit is contained in:
parent
7e6c6ef994
commit
0837a69c2e
98
.github/workflows/build-project.yml
vendored
98
.github/workflows/build-project.yml
vendored
|
@ -25,6 +25,32 @@ jobs:
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
|
- name: Install Windows dependencies
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install psutil
|
||||||
|
pip install crcengine
|
||||||
|
pip install pyinstaller
|
||||||
|
pip install ujson
|
||||||
|
pip install pyserial
|
||||||
|
pip install numpy
|
||||||
|
curl.exe --output PyAudio-0.2.11-cp39-cp39-win_amd64.whl --url https://download.lfd.uci.edu/pythonlibs/y2rycu7g/PyAudio-0.2.11-cp39-cp39-win_amd64.whl
|
||||||
|
pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
|
||||||
|
|
||||||
|
- name: Build DAEMON and TNC Windows
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
working-directory: tnc
|
||||||
|
run: |
|
||||||
|
pyinstaller -F daemon.py -n daemon
|
||||||
|
|
||||||
|
|
||||||
|
- name: Install Node.js, NPM and Yarn
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build_linux_release:
|
build_linux_release:
|
||||||
|
@ -47,24 +73,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.9
|
||||||
|
|
||||||
- name: Install Windows dependencies
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install psutil
|
|
||||||
pip install crcengine
|
|
||||||
pip install pyinstaller
|
|
||||||
pip install ujson
|
|
||||||
pip install pyserial
|
|
||||||
pip install numpy
|
|
||||||
curl.exe --output PyAudio-0.2.11-cp39-cp39-win_amd64.whl --url https://download.lfd.uci.edu/pythonlibs/y2rycu7g/PyAudio-0.2.11-cp39-cp39-win_amd64.whl
|
|
||||||
pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
|
|
||||||
|
|
||||||
- name: Build DAEMON and TNC Windows
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
working-directory: tnc
|
|
||||||
run: |
|
|
||||||
pyinstaller -F daemon.py -n daemon
|
|
||||||
|
|
||||||
|
|
||||||
- name: Install Linux dependencies
|
- name: Install Linux dependencies
|
||||||
|
@ -80,6 +88,7 @@ jobs:
|
||||||
pip3 install pyserial
|
pip3 install pyserial
|
||||||
pip3 install numpy
|
pip3 install numpy
|
||||||
|
|
||||||
|
|
||||||
#- name: Build Hamlib Python Binding
|
#- name: Build Hamlib Python Binding
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
# if: matrix.os == 'ubuntu-latest'
|
||||||
# working-directory: tnc
|
# working-directory: tnc
|
||||||
|
@ -106,41 +115,6 @@ jobs:
|
||||||
cmake ../
|
cmake ../
|
||||||
make
|
make
|
||||||
|
|
||||||
#- name: Build LPCNet Linux
|
|
||||||
# #if: matrix.os == 'ubuntu-latest'
|
|
||||||
# working-directory: tnc
|
|
||||||
# run: |
|
|
||||||
# cd ~
|
|
||||||
# git clone https://github.com/drowe67/LPCNet
|
|
||||||
# cd LPCNet && mkdir build_linux && cd build_linux
|
|
||||||
# cmake -DCODEC2_BUILD_DIR=~/codec2/build_linux ../
|
|
||||||
# make
|
|
||||||
|
|
||||||
#- name: ReBuild codec2 with LPCNet Linux
|
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
|
||||||
# #working-directory: tnc
|
|
||||||
# run: |
|
|
||||||
# cd ~/codec2/build_linux && rm -Rf *
|
|
||||||
# cmake -DLPCNET_BUILD_DIR=~/LPCNet/build_linux ..
|
|
||||||
# make
|
|
||||||
|
|
||||||
#- name: Copy codec2 to TNC Linux
|
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
|
||||||
# #working-directory: tnc
|
|
||||||
# run: |
|
|
||||||
# #cp -R ~/codec2 ./tnc/dist
|
|
||||||
# cp -R ~/codec2 ./tnc/
|
|
||||||
# ls -R
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#- name: Copy LPCNet to TNC Linux
|
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
|
||||||
# #working-directory: tnc
|
|
||||||
# run: |
|
|
||||||
# #cp -R ~/LPCNet ./tnc/dist
|
|
||||||
# cp -R ~/LPCNet ./tnc/
|
|
||||||
# ls -R
|
|
||||||
|
|
||||||
- name: Build Linux
|
- name: Build Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
@ -154,14 +128,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ls -R
|
ls -R
|
||||||
|
|
||||||
#- name: Copy hamlib to TNC Linux
|
|
||||||
# if: matrix.os == 'ubuntu-latest'
|
|
||||||
# working-directory: tnc
|
|
||||||
# run: |
|
|
||||||
# cp -R ./hamlib ./dist
|
|
||||||
# chmod +x ./dist/hamlib/linux/rigctld
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Compress Linux
|
- name: Compress Linux
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -169,7 +135,6 @@ jobs:
|
||||||
cd ./tnc/dist
|
cd ./tnc/dist
|
||||||
mkdir compressed
|
mkdir compressed
|
||||||
zip -r ./compressed/${{ matrix.zip_name }}.zip *
|
zip -r ./compressed/${{ matrix.zip_name }}.zip *
|
||||||
#tar -zcvf ./compressed/${{ matrix.zip_name }}.tar.gz *
|
|
||||||
|
|
||||||
- name: Upload Ubuntu TNC artifacts
|
- name: Upload Ubuntu TNC artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
@ -177,7 +142,6 @@ jobs:
|
||||||
name: tnc-artifact
|
name: tnc-artifact
|
||||||
path: ./tnc/dist/compressed/*
|
path: ./tnc/dist/compressed/*
|
||||||
|
|
||||||
|
|
||||||
- name: Install Node.js, NPM and Yarn
|
- name: Install Node.js, NPM and Yarn
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
@ -185,7 +149,6 @@ jobs:
|
||||||
|
|
||||||
- name: Copy TNC to GUI Linux
|
- name: Copy TNC to GUI Linux
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
# working-directory: tnc
|
|
||||||
run: |
|
run: |
|
||||||
cp -R ./tnc/dist ./gui/tnc
|
cp -R ./tnc/dist ./gui/tnc
|
||||||
ls -R
|
ls -R
|
||||||
|
@ -212,18 +175,12 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir gui-bundle
|
mkdir gui-bundle
|
||||||
cp ./gui/dist/*.AppImage gui-bundle
|
cp ./gui/dist/*.AppImage gui-bundle
|
||||||
#cp -R ./tnc/dist/hamlib gui-bundle
|
|
||||||
#cp -R ./tnc/dist/codec2 gui-bundle
|
|
||||||
#cp -R ./tnc/codec2 gui-bundle
|
|
||||||
#cp -R ./tnc/LPCNet gui-bundle
|
|
||||||
cp ./tnc/dist/daemon gui-bundle
|
cp ./tnc/dist/daemon gui-bundle
|
||||||
cp ./tnc/dist/tnc gui-bundle
|
cp ./tnc/dist/tnc gui-bundle
|
||||||
#chmod +x ./gui-bundle/hamlib/linux/rigctld
|
|
||||||
chmod +x ./gui-bundle/tnc
|
chmod +x ./gui-bundle/tnc
|
||||||
chmod +x ./gui-bundle/daemon
|
chmod +x ./gui-bundle/daemon
|
||||||
cd ./gui-bundle
|
cd ./gui-bundle
|
||||||
zip -r codec2-FreeDATA_linux.zip .
|
zip -r codec2-FreeDATA_linux.zip .
|
||||||
#tar -zcvf codec2-FreeDATA_linux.tar.gz *
|
|
||||||
ls -R
|
ls -R
|
||||||
|
|
||||||
- name: Upload Ubuntu GUI Bundle artifacts
|
- name: Upload Ubuntu GUI Bundle artifacts
|
||||||
|
@ -231,7 +188,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: gui-bundle-ubuntu-artifact
|
name: gui-bundle-ubuntu-artifact
|
||||||
path: ./gui-bundle/codec2-FreeDATA_linux.zip
|
path: ./gui-bundle/codec2-FreeDATA_linux.zip
|
||||||
#path: ./gui-bundle/codec2-FreeDATA_linux.tar.gz
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue