diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/dependabot.yml | 12 | ||||
| -rw-r--r-- | .github/workflows/ci.yaml | 38 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9e0313c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "ci" + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..054e4a3 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [main] + paths: + - "**.nix" + - ".github/workflows/ci.yaml" + pull_request: + paths: + - "**.nix" + - ".github/workflows/ci.yaml" + workflow_dispatch: + +jobs: + build: + name: Build + + strategy: + matrix: + include: + - os: ubuntu-latest + system: x86_64-linux + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Nix + uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - name: Run build + run: | + nix-build release.nix -A ${{ matrix.system }} |
