diff options
| author | seth <[email protected]> | 2023-05-21 18:11:53 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-21 18:11:53 -0400 |
| commit | d1878f3e55371affe603459c540954c631d6462f (patch) | |
| tree | cd7fbdef347569aa7ed57237d96539b1500dd774 /.github/workflows | |
| parent | 913f1bf789e4ad9d7bae13e13d318620cea6761b (diff) | |
feat: start using flake-parts + add nixos module
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/check.yml | 6 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d436e31..691d77d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -7,12 +7,14 @@ on: - "**.nix" - "**.rs" - "**.toml" + pull_request: paths: - "**.lock" - "**.nix" - "**.rs" - "**.toml" + workflow_dispatch: jobs: @@ -22,12 +24,10 @@ jobs: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v20 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - uses: cachix/cachix-action@v12 with: name: getchoo authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} - - run: nix flake check -L + - run: nix flake check --accept-flake-config -L diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51f5e9e..eb0ec21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,14 @@ on: - "**.nix" - "**.rs" - "**.toml" + pull_request: paths: - "**.lock" - "**.nix" - "**.rs" - "**.toml" + workflow_dispatch: jobs: @@ -34,8 +36,6 @@ jobs: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v20 - with: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - uses: cachix/cachix-action@v12 with: @@ -52,7 +52,7 @@ jobs: - name: build run: | - nix build -L .#${{ matrix.output }} + nix build --accept-flake-config -L .#${{ matrix.output }} - name: upload to ghcr if: ${{ matrix.output == 'container' && github.ref == 'refs/heads/main' }} |
