Skip to content

v1.2.0 - Performance, Persistence, and network chart Update #1

v1.2.0 - Performance, Persistence, and network chart Update

v1.2.0 - Performance, Persistence, and network chart Update #1

Workflow file for this run

name: Build and Upload Binaries
on:
release:
types: [created]
permissions:
contents: write
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: netwatch-linux
binary_path: dist/netwatch
- os: windows-latest
artifact_name: netwatch-windows.exe
binary_path: dist/netwatch.exe
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Dependencies
run: |
pip install .
pip install pyinstaller
- name: Build with PyInstaller
run: pyinstaller netwatch.spec
- name: Rename Output (Linux)
if: matrix.os == 'ubuntu-latest'
run: mv ${{ matrix.binary_path }} dist/${{ matrix.artifact_name }}
- name: Rename Output (Windows)
if: matrix.os == 'windows-latest'
run: Move-Item ${{ matrix.binary_path }} dist/${{ matrix.artifact_name }}
- name: Upload to Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/${{ matrix.artifact_name }}