mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-05 20:40:09 -08:00
44 lines
973 B
YAML
44 lines
973 B
YAML
name: build
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Test Workflow"]
|
|
types:
|
|
- completed
|
|
jobs:
|
|
build:
|
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: "Set up Python"
|
|
uses: actions/setup-python@v5
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v3
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Build viu
|
|
run: uv build
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: viu_debug_build
|
|
path: |
|
|
dist
|
|
|
|
- name: Install nix
|
|
uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- name: Use GitHub Action built-in cache
|
|
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
- name: Nix Flake check (evaluation + tests)
|
|
run: nix flake check
|
|
|
|
- name: Build the nix derivation
|
|
run: nix build
|