hydra/.github/workflows/build.yml

65 lines
1.6 KiB
YAML
Raw Normal View History

2024-04-18 10:46:06 +03:00
name: Build
on: [pull_request]
2024-04-18 10:46:06 +03:00
jobs:
build:
strategy:
matrix:
2024-05-13 12:51:22 +03:00
os: [windows-latest, ubuntu-latest]
2024-04-18 10:46:06 +03:00
2024-04-29 13:01:34 +03:00
runs-on: ${{ matrix.os }}
2024-04-18 10:46:06 +03:00
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Install dependencies
run: yarn
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
run: pip install -r requirements.txt
2024-04-19 22:42:09 +03:00
- name: Build with cx_Freeze
run: python torrent-client/setup.py build
2024-04-18 10:46:06 +03:00
2024-04-29 13:01:34 +03:00
- name: Build Linux
if: matrix.os == 'ubuntu-latest'
run: yarn build:linux
env:
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}
MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }}
2024-04-29 13:08:04 +03:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-04-29 13:01:34 +03:00
- name: Build Windows
if: matrix.os == 'windows-latest'
run: yarn build:win
2024-04-25 22:54:38 +03:00
env:
MAIN_VITE_ONLINEFIX_USERNAME: ${{ secrets.ONLINEFIX_USERNAME }}
MAIN_VITE_ONLINEFIX_PASSWORD: ${{ secrets.ONLINEFIX_PASSWORD }}
2024-04-29 13:08:04 +03:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-04-25 22:54:38 +03:00
2024-04-29 13:01:34 +03:00
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: Build-${{ matrix.os }}
path: |
2024-05-19 00:26:02 +03:00
dist/win-unpacked/**
2024-04-29 13:01:34 +03:00
dist/*.zip
dist/*.dmg
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap