Skip to content

Commit

Permalink
CI: add nix
Browse files Browse the repository at this point in the history
  • Loading branch information
fufexan committed Jun 8, 2024
1 parent ef441d2 commit 0693f93
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build & Test

on: [push, pull_request, workflow_dispatch]
jobs:
nix:
strategy:
matrix:
package:
- hyprutils
- hyprutils-with-tests

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v26
- uses: DeterminateSystems/magic-nix-cache-action@main

# not needed (yet)
# - uses: cachix/cachix-action@v12
# with:
# name: hyprland
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Build & Test
run: nix build .#${{ matrix.package }} --print-build-logs

0 comments on commit 0693f93

Please sign in to comment.