mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
Merge pull request #108 from theobori/feature/ci
Added GitHub action step to build the Nix derivation
This commit is contained in:
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@@ -1,11 +1,11 @@
|
||||
name: debug_build
|
||||
name: build
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Test Workflow"]
|
||||
types:
|
||||
- completed
|
||||
jobs:
|
||||
debug_build:
|
||||
build:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -29,3 +29,15 @@ jobs:
|
||||
name: fastanime_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
|
||||
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -136,7 +136,6 @@ celerybeat.pid
|
||||
|
||||
# Environments
|
||||
.env
|
||||
.envrc
|
||||
.venv
|
||||
env/
|
||||
venv/
|
||||
@@ -209,3 +208,5 @@ __marimo__/
|
||||
# custom
|
||||
repomix-output.xml
|
||||
.project/
|
||||
result
|
||||
.direnv
|
||||
|
||||
19
shell.nix
19
shell.nix
@@ -1,19 +0,0 @@
|
||||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
in
|
||||
pkgs.mkShell {
|
||||
packages = [
|
||||
(pkgs.python3.withPackages (python-pkgs: [
|
||||
python-pkgs.yt-dlp
|
||||
python-pkgs.dbus-python
|
||||
python-pkgs.requests
|
||||
python-pkgs.rich
|
||||
python-pkgs.click
|
||||
python-pkgs.inquirerpy
|
||||
python-pkgs.mpv
|
||||
python-pkgs.fastapi
|
||||
python-pkgs.thefuzz
|
||||
python-pkgs.plyer
|
||||
]))
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user