Tweak build script a little

This commit is contained in:
Paul Kronenwetter 2022-09-18 16:53:36 -04:00
parent 690f400a81
commit e189d0298e

View file

@ -49,7 +49,7 @@ jobs:
steps: steps:
- name: Build codec2 ${{ matrix.os }} - name: Build codec2 ${{ matrix.os }} ${{ matrix.platform.name }}
if: ${{startsWith(matrix.platform.name, 'native') }} if: ${{startsWith(matrix.platform.name, 'native') }}
run: | run: |
git clone https://github.com/drowe67/codec2.git git clone https://github.com/drowe67/codec2.git
@ -70,7 +70,7 @@ jobs:
path: ${{ github.workspace }}/codec2/tempfiles/ path: ${{ github.workspace }}/codec2/tempfiles/
- name: Build ${{ matrix.platform.name }} ${{ matrix.architecture }} - name: Build codec2 ${{ matrix.platform.name }} ${{ matrix.architecture }}
if: ${{startsWith(matrix.os, 'ubuntu') && !startsWith(matrix.platform.name, 'native') }} if: ${{startsWith(matrix.os, 'ubuntu') && !startsWith(matrix.platform.name, 'native') }}
run: | run: |
sudo apt install build-essential mingw-w64 g++-mingw-w64 make cmake sudo apt install build-essential mingw-w64 g++-mingw-w64 make cmake
@ -171,7 +171,6 @@ jobs:
# Produce a binary artifact and place it in the mounted volume # Produce a binary artifact and place it in the mounted volume
run: | run: |
git clone https://github.com/drowe67/codec2.git git clone https://github.com/drowe67/codec2.git
cd codec2 cd codec2
git checkout master git checkout master
@ -181,7 +180,7 @@ jobs:
make make
mv ./src/libcodec2.so.1.0 /artifacts/${artifact_name} mv ./src/libcodec2.so.1.0 /artifacts/${artifact_name}
- name: Show recursive PWD - name: Show recursive PWD/artifacts
# Items placed in /artifacts in the container will be in # Items placed in /artifacts in the container will be in
# ${PWD}/artifacts on the host. # ${PWD}/artifacts on the host.
run: | run: |
@ -235,7 +234,7 @@ jobs:
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-latest'
working-directory: tnc working-directory: tnc
run: | run: |
mkdir dist mkdir -p dist
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v3
with: with:
@ -244,9 +243,9 @@ jobs:
- name: Install Linux dependencies - name: Install Linux dependencies
if: matrix.os == 'ubuntu-20.04' if: matrix.os == 'ubuntu-20.04'
run: | run: |
sudo apt install portaudio19-dev libhamlib-dev libhamlib-utils build-essential cmake python3-libhamlib2 sudo apt install -y portaudio19-dev libhamlib-dev libhamlib-utils build-essential cmake python3-libhamlib2
- name: Install macOS pyAudio - name: Install MacOS pyAudio
if: matrix.os == 'macos-11' if: matrix.os == 'macos-11'
run: | run: |
brew install portaudio brew install portaudio
@ -258,7 +257,7 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install psutil pip install psutil
pip install crcengine pip install crcengine
pip install 'pyinstaller<5.1' # pip install 'pyinstaller<5.1'
pip install ujson pip install ujson
pip install pyserial pip install pyserial
pip install numpy pip install numpy
@ -290,9 +289,8 @@ jobs:
# with: # with:
# path: tnc/lib/codec2 # path: tnc/lib/codec2
# - name: Display structure of downloaded files
- name: Display structure of downloaded files # run: ls -R
run: ls -R
- name: Build binaries - name: Build binaries
working-directory: tnc working-directory: tnc
@ -303,14 +301,14 @@ jobs:
python3 -m nuitka --enable-plugin=numpy --assume-yes-for-downloads --standalone daemon.py python3 -m nuitka --enable-plugin=numpy --assume-yes-for-downloads --standalone daemon.py
python3 -m nuitka --enable-plugin=numpy --assume-yes-for-downloads --standalone main.py python3 -m nuitka --enable-plugin=numpy --assume-yes-for-downloads --standalone main.py
- name: Copy binaries linux unix - name: Copy binaries linux and MacOS
if: matrix.os != 'windows-latest' if: matrix.os != 'windows-latest'
working-directory: tnc working-directory: tnc
run: | run: |
#mkdir dist #mkdir dist
ls -R ls -R
cp -r -f daemon.dist/* dist/ cp -r --force daemon.dist/* dist/
cp -r -f main.dist/* dist/ cp -r --force main.dist/* dist/
- name: Copy binaries windows - name: Copy binaries windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
@ -318,8 +316,8 @@ jobs:
run: | run: |
#mkdir dist #mkdir dist
ls -R ls -R
cp -r -Force daemon.dist/* dist/ cp -r --force daemon.dist/* dist/
cp -r -Force main.dist/* dist/ cp -r --force main.dist/* dist/
- name: rename tnc binaries - name: rename tnc binaries
working-directory: tnc working-directory: tnc