Skip to content

✨ enhanced speed v1.4 #20

✨ enhanced speed v1.4

✨ enhanced speed v1.4 #20

Workflow file for this run

name: Build Executables
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- os: windows-latest
artifact_name: dymo-code-windows-amd64.exe
asset_name: dymo-code-windows-amd64.exe
- os: ubuntu-latest
artifact_name: dymo-code-linux-x86_64
asset_name: dymo-code-linux-x86_64
- os: macos-latest
artifact_name: dymo-code-macos-arm64
asset_name: dymo-code-macos-arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pyinstaller
- name: Build executable
run: python build.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset_name }}
path: dist/${{ matrix.artifact_name }}
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: artifacts/**/*
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}