From b229a37e59b9720b7017e72a6d159b869ff36458 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 26 Aug 2024 23:51:17 -0400 Subject: [skip ci] initial commit --- .github/dependabot.yml | 12 ++++++++++++ .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/ci.yaml (limited to '.github') 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 }} -- cgit v1.2.3