Fixed increment seq error and cleaned up a little #2248
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build_server | |
| on: [push] | |
| jobs: | |
| build_i686_x64_release: | |
| name: Build FreeDATA packages | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, windows-latest] # removed macos-latest as it's broken for now | |
| include: | |
| - os: ubuntu-24.04 | |
| zip_name: freedata-server_ubuntu | |
| #generator: Unix Makefiles | |
| modem_binary_name: freedata_server | |
| #- os: macos-latest | |
| # zip_name: freedata-server_macos | |
| # generator: Unix Makefiles | |
| # modem_binary_name: freedata_server | |
| - os: windows-latest | |
| zip_name: freedata-server_windows | |
| #generator: Visual Studio 17 2022 | |
| modem_binary_name: freedata_server.exe | |
| steps: | |
| - name: Checkout code for ${{ matrix.platform.name }} | |
| uses: actions/checkout@v5 | |
| with: | |
| repository: DJ2LS/FreeDATA | |
| - name: Install Node.js, NPM and Yarn | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Vue Builder | |
| working-directory: freedata_gui | |
| run: | | |
| npm i | |
| npm run build | |
| - name: Set up Python 3.13 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Linux dependencies | |
| if: ${{startsWith(matrix.os, 'ubuntu')}} | |
| run: | | |
| sudo apt install -y portaudio19-dev libhamlib-dev libhamlib-utils build-essential cmake patchelf | |
| - name: Install MacOS pyAudio | |
| if: ${{startsWith(matrix.os, 'macos')}} | |
| run: | | |
| brew install portaudio | |
| python -m pip install --upgrade pip | |
| pip3 install pyaudio | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install .[nuitka] | |
| - name: Add MacOS certs | |
| if: ${{startsWith(matrix.os, 'macos')}} | |
| run: chmod +x add-osx-cert.sh && ./add-osx-cert.sh | |
| env: | |
| CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }} | |
| CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} | |
| - name: Build binaries | |
| working-directory: freedata_server | |
| run: | | |
| python3 -m nuitka --remove-output --nofollow-import-to=sqlalchemy.dialects.mysql,sqlalchemy.dialects.mariadb,sqlalchemy.dialects.postgresql,sqlalchemy.dialects.oracle,sqlalchemy.dialects.mssql --include-package=sqlalchemy.dialects.sqlite --assume-yes-for-downloads --follow-imports --include-data-dir=lib=lib --include-data-dir=../freedata_gui/dist=gui --include-data-files=lib/codec2/*=lib/codec2/ --include-data-files=config.ini.example=config.ini --standalone server.py --output-filename=freedata-server | |
| #- name: Download Portaudio binaries Linux macOS | |
| # if: ${{!startsWith(matrix.os, 'windows')}} | |
| # working-directory: freedata_server | |
| # run: | | |
| # if ! test -d "server.dist/freedata_server/_sounddevice_data"; then | |
| # git clone https://github.com/spatialaudio/portaudio-binaries dist/freedata_server/_sounddevice_data/portaudio-binaries | |
| # fi | |
| #- name: Download Portaudio binaries Windows | |
| # if: ${{startsWith(matrix.os, 'windows')}} | |
| # working-directory: freedata_server | |
| # run: | | |
| # if(Test-Path -Path "server.dist/freedata_server/_sounddevice_data"){ | |
| # echo "sounddevice folder already exists" | |
| # } else { | |
| # git clone https://github.com/spatialaudio/portaudio-binaries dist/freedata_server/_sounddevice_data/portaudio-binaries | |
| # } | |
| - name: LIST ALL FILES | |
| run: ls -R | |
| - name: cleanup on macos before code signing | |
| if: ${{startsWith(matrix.os, 'macos')}} | |
| run: | | |
| ls -l | |
| # find . -type d -name .git -exec rm -r {} \; | |
| find . -type d -o -name ".git" -delete | |
| - name: Compress Modem | |
| uses: thedoctor0/zip-release@master | |
| with: | |
| type: 'zip' | |
| filename: '${{ matrix.zip_name }}.zip' | |
| directory: ./freedata_server/server.dist | |
| path: . | |
| # exclusions: '*.git* /*node_modules/* .editorconfig' | |
| - name: LIST ALL FILES | |
| run: ls -R | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: '${{ matrix.zip_name }}' | |
| path: ./freedata_server/server.dist/${{ matrix.zip_name }}.zip | |
| - name: Release Modem | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| draft: false | |
| files: ./freedata_server/server.dist/${{ matrix.zip_name }}.zip | |
| tag_name: ${{ github.ref_name }} | |
| - name: LIST ALL FILES | |
| run: ls -R |