diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06464af..871e86d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.gitignore b/.gitignore index 2660c5d..1c100d2 100644 --- a/.gitignore +++ b/.gitignore @@ -136,7 +136,6 @@ celerybeat.pid # Environments .env -.envrc .venv env/ venv/ @@ -209,3 +208,5 @@ __marimo__/ # custom repomix-output.xml .project/ +result +.direnv diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 5c2fc35..0000000 --- a/shell.nix +++ /dev/null @@ -1,19 +0,0 @@ -let - pkgs = import { }; -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 - ])) - ]; -}