hydra/.github/workflows/build.yml

83 lines
2.3 KiB
YAML
Raw Normal View History

2024-04-18 10:46:06 +03:00
name: Build
on:
push:
2024-04-30 05:27:07 +03:00
branches: main
2024-04-18 10:46:06 +03:00
jobs:
build:
strategy:
matrix:
2024-05-13 12:48:17 +03:00
os: [windows-latest, macos-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_STEAMGRIDDB_API_KEY: ${{ secrets.STEAMGRIDDB_API_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.SENTRY_DSN }}
RENDERER_VITE_SENTRY_DSN: ${{ vars.SENTRY_DSN }}
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_STEAMGRIDDB_API_KEY: ${{ secrets.STEAMGRIDDB_API_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAIN_VITE_SENTRY_DSN: ${{ vars.SENTRY_DSN }}
RENDERER_VITE_SENTRY_DSN: ${{ vars.SENTRY_DSN }}
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: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
2024-04-25 07:52:19 +03:00
- name: VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
2024-04-29 13:01:34 +03:00
if: matrix.os == 'windows-latest'
2024-04-25 07:52:19 +03:00
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
files: |
2024-04-29 13:01:34 +03:00
./dist/*.exe