Skip to content

Commit

Permalink
feat(github): added cachnix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Nov 28, 2023
1 parent 7c5363d commit 56b7674
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/cachix.yml
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# TODO Create pipeline for nix cache result of filebot
name: Build filebot for cachnix
run-name: Build filebot for cachnix
on: [ release ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Install Nix"
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: "Install Cachix"
uses: cachix/cachix-action@v12
with:
name: wittano-nix-repo
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: "Check nix packages"
run: nix flake check
- name: "Build packages"
run: "nix build .#packages.x86_64-linux.default"
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
buildGoModule rec {
name = "filebot";
src = ./.;
version = "v1.0.0";

vendorHash = "sha256-plRphEIwtPoej+bM4fChhOjBGO/BJ2KoCjZnyD/Z634=";

Expand Down

0 comments on commit 56b7674

Please sign in to comment.