mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
first nuitka test run
This commit is contained in:
parent
8deaa5756d
commit
0ef2d601dd
34
.github/workflows/build_multiplatform.yml
vendored
34
.github/workflows/build_multiplatform.yml
vendored
|
@ -228,7 +228,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt install portaudio19-dev libhamlib-dev libhamlib-utils build-essential cmake python3-libhamlib2
|
sudo apt install portaudio19-dev libhamlib-dev libhamlib-utils build-essential cmake python3-libhamlib2
|
||||||
|
|
||||||
- name: Install macOS dependencies
|
- name: Install macOS pyAudio
|
||||||
if: matrix.os == 'macos-11'
|
if: matrix.os == 'macos-11'
|
||||||
run: |
|
run: |
|
||||||
brew install portaudio
|
brew install portaudio
|
||||||
|
@ -249,6 +249,8 @@ jobs:
|
||||||
pip install sounddevice
|
pip install sounddevice
|
||||||
# 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
|
# 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
|
# pip install PyAudio-0.2.11-cp39-cp39-win_amd64.whl
|
||||||
|
pip install nuitka
|
||||||
|
pip install ordered-set
|
||||||
|
|
||||||
|
|
||||||
- name: Install Pyaudio Windows
|
- name: Install Pyaudio Windows
|
||||||
|
@ -279,10 +281,15 @@ jobs:
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R
|
run: ls -R
|
||||||
|
|
||||||
- name: Build Linux Daemon
|
- name: Build Linux binaries
|
||||||
working-directory: tnc
|
working-directory: tnc
|
||||||
run: |
|
run: |
|
||||||
pyinstaller freedata.spec
|
#pyinstaller freedata.spec
|
||||||
|
python3 -m nuitka --enable-plugin=numpy --onefile daemon.py -o freedata-daemon
|
||||||
|
python3 -m nuitka --enable-plugin=numpy --onefile main.py -o freedata-tnc
|
||||||
|
mkdir dist
|
||||||
|
cp freedata-daemon dist/
|
||||||
|
cp freedata-tnc dist/
|
||||||
|
|
||||||
- name: LIST ALL FILES
|
- name: LIST ALL FILES
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -296,12 +303,20 @@ jobs:
|
||||||
# cd ./tnc/dist
|
# cd ./tnc/dist
|
||||||
# zip -r ./${{ matrix.zip_name }}.zip *
|
# zip -r ./${{ matrix.zip_name }}.zip *
|
||||||
|
|
||||||
|
- name: Copy TNC to GUI Linux
|
||||||
|
run: |
|
||||||
|
#cp -R ./tnc/dist/tnc ./gui/tnc
|
||||||
|
cp -R ./tnc/dist ./gui/tnc
|
||||||
|
ls -R
|
||||||
|
|
||||||
|
|
||||||
- name: Compress TNC
|
- name: Compress TNC
|
||||||
uses: thedoctor0/zip-release@master
|
uses: thedoctor0/zip-release@master
|
||||||
with:
|
with:
|
||||||
type: 'zip'
|
type: 'zip'
|
||||||
filename: '${{ matrix.zip_name }}.zip'
|
filename: '${{ matrix.zip_name }}.zip'
|
||||||
directory: ./tnc/dist/tnc
|
#directory: ./tnc/dist/tnc
|
||||||
|
directory: ./tnc/dist
|
||||||
path: .
|
path: .
|
||||||
#exclusions: '*.git* /*node_modules/* .editorconfig'
|
#exclusions: '*.git* /*node_modules/* .editorconfig'
|
||||||
|
|
||||||
|
@ -314,12 +329,8 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.zip_name }}.zip
|
name: ${{ matrix.zip_name }}.zip
|
||||||
path: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
#path: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
||||||
|
path: ./tnc/dist/${{ matrix.zip_name }}.zip
|
||||||
- name: Copy TNC to GUI Linux
|
|
||||||
run: |
|
|
||||||
cp -R ./tnc/dist/tnc ./gui/tnc
|
|
||||||
ls -R
|
|
||||||
|
|
||||||
- name: Install Node.js, NPM and Yarn
|
- name: Install Node.js, NPM and Yarn
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
|
@ -330,7 +341,8 @@ jobs:
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
with:
|
with:
|
||||||
files: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
#files: ./tnc/dist/tnc/${{ matrix.zip_name }}.zip
|
||||||
|
files: ./tnc/dist/${{ matrix.zip_name }}.zip
|
||||||
|
|
||||||
|
|
||||||
- name: Build/release Electron app
|
- name: Build/release Electron app
|
||||||
|
|
Loading…
Reference in a new issue