fix/ci: linux

This commit is contained in:
Kentai Radiquum 2025-06-25 15:23:26 +05:00
parent dd84020851
commit b815947e61
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -20,71 +20,78 @@ jobs:
name: "linux-build" name: "linux-build"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "[Preparing] cloning repository"
uses: actions/checkout@v4
- name: "[DEPS/Tool] bun" - name: "[DEPS/Tool] bun"
uses: oven-sh/setup-bun@v2 uses: oven-sh/setup-bun@v2
- name: "[DEPS/Tool] python" - name: "[DEPS/Tool] python"
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.13.2' python-version: '3.13.2'
- name: "[Preparing] cloning repository" cache: 'pip'
uses: actions/checkout@v4 - name: "[DEBUG] check if pip is installed"
run: |
which pip
pip --version
- name: "[DEPS/Build] Backend" - name: "[DEPS/Build] Backend"
run: | run: |
"pip install -r ./requirements.txt" pip install -r requirements.txt
"pip install -r ./requirements.dev.txt" pip install -r requirements.dev.txt
- name: "[DEPS/Build] Frontend" - name: "[DEPS/Build] Frontend"
run: "cd ./gui && bun install && cd .." run: bun install
working-directory: ./gui
- name: "[Build] Building artifact" - name: "[Build] Building artifact"
run: "python ./build.py --exe" run: python ./build.py --exe
- name: "[Publish] Upload GUI Artifact" - name: "[Publish] Upload GUI Artifact"
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "YAMPD-gui" name: "YAMPD-gui"
path: "./dist/gui" path: "./gui"
working-directory: ./dist
if-no-files-found: warn if-no-files-found: warn
retention-days: 14 retention-days: 14
- name: "[Publish] Upload CLI Artifact" - name: "[Publish] Upload CLI Artifact"
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: "YAMPD-cli" name: "YAMPD-cli"
path: "./dist/cli" path: "./cli"
working-directory: ./dist
if-no-files-found: warn if-no-files-found: warn
retention-days: 14 retention-days: 14
build_windows: # build_windows:
name: "windows-build" # name: "windows-build"
runs-on: windows-latest # runs-on: windows-latest
steps: # steps:
- name: "[DEPS/Tool] bun" # - name: "[Preparing] cloning repository"
uses: oven-sh/setup-bun@v2 # uses: actions/checkout@v4
- name: "[DEPS/Tool] python" # - name: "[DEPS/Tool] bun"
uses: actions/setup-python@v5 # uses: oven-sh/setup-bun@v2
with: # - name: "[DEPS/Tool] python"
python-version: '3.13.2' # uses: actions/setup-python@v5
- name: "[Preparing] cloning repository" # with:
uses: actions/checkout@v4 # python-version: '3.13.2'
- name: "[DEPS/Build] Backend" # cache: 'pip'
run: | # - name: "[DEPS/Build] Backend"
"pip install -r ./requirements.txt" # run: |
"pip install -r ./requirements.dev.txt" # "pip install -r requirements.txt"
- name: "[DEPS/Build] Frontend" # "pip install -r requirements.dev.txt"
run: | # - name: "[DEPS/Build] Frontend"
"cd ./gui" # run: "bun install"
"bun install" # working-directory: ./gui
"cd .." # - name: "[Build] Building artifact"
- name: "[Build] Building artifact" # run: "python ./build.py --exe"
run: "python ./build.py --exe" # - name: "[Publish] Upload GUI Artifact"
- name: "[Publish] Upload GUI Artifact" # uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4 # with:
with: # name: "YAMPD-gui.exe"
name: "YAMPD-gui.exe" # path: "./dist/gui.exe"
path: "./dist/gui.exe" # if-no-files-found: warn
if-no-files-found: warn # retention-days: 14
retention-days: 14 # - name: "[Publish] Upload CLI Artifact"
- name: "[Publish] Upload CLI Artifact" # uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v4 # with:
with: # name: "YAMPD-cli.exe"
name: "YAMPD-cli.exe" # path: "./dist/cli.exe"
path: "./dist/cli.exe" # if-no-files-found: warn
if-no-files-found: warn # retention-days: 14
retention-days: 14