YAMPD/.github/workflows/build.yml
Radiquum 08c72152d0
Some checks failed
YAMPD Build / linux-build (push) Has been cancelled
YAMPD Build / windows-build (push) Has been cancelled
feat/ci: re-enable windows build
2025-06-25 16:24:14 +05:00

95 lines
2.6 KiB
YAML

name: "YAMPD Build"
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: "build"
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build_linux:
name: "linux-build"
runs-on: ubuntu-latest
steps:
- name: "[Preparing] cloning repository"
uses: actions/checkout@v4
- name: "[DEPS/Tool] bun"
uses: oven-sh/setup-bun@v2
- name: "[DEPS/Tool] python"
uses: actions/setup-python@v5
with:
python-version: '3.13.2'
cache: 'pip'
- name: "[DEBUG] check if pip is installed"
run: |
which pip
pip --version
- name: "[DEPS/Build] Backend"
run: |
pip install -r requirements.txt
pip install -r requirements.build.txt
- name: "[DEPS/Build] Frontend"
run: bun install
working-directory: ./gui
- name: "[Build] Building artifact"
run: python ./build.py --exe
- name: "[Publish] Upload GUI Artifact"
uses: actions/upload-artifact@v4
with:
name: "YAMPD-gui-linux"
path: "./dist/yamcpack"
if-no-files-found: warn
retention-days: 14
- name: "[Publish] Upload CLI Artifact"
uses: actions/upload-artifact@v4
with:
name: "YAMPD-cli-linux"
path: "./dist/yamcpack-cli"
if-no-files-found: warn
retention-days: 14
build_windows:
name: "windows-build"
runs-on: windows-latest
steps:
- name: "[Preparing] cloning repository"
uses: actions/checkout@v4
- name: "[DEPS/Tool] bun"
uses: oven-sh/setup-bun@v2
- name: "[DEPS/Tool] python"
uses: actions/setup-python@v5
with:
python-version: '3.13.2'
cache: 'pip'
- name: "[DEPS/Build] Backend"
run: |
pip install -r requirements.txt
pip install -r requirements.build.txt
- name: "[DEPS/Build] Frontend"
run: "bun install"
working-directory: ./gui
- name: "[Build] Building artifact"
run: python ./build.py --exe
- name: "[Publish] Upload GUI Artifact"
uses: actions/upload-artifact@v4
with:
name: "YAMPD-gui-windows.exe"
path: "./dist/yamcpack.exe"
if-no-files-found: warn
retention-days: 14
- name: "[Publish] Upload CLI Artifact"
uses: actions/upload-artifact@v4
with:
name: "YAMPD-cli-windows.exe"
path: "./dist/yamcpack-cli.exe"
if-no-files-found: warn
retention-days: 14