Explorar o código

Merge pull request #145 from eza-community/cafk-gha-flake-check

ci: nix flake check
Christina Sørensen %!s(int64=2) %!d(string=hai) anos
pai
achega
78f86db7e5
Modificáronse 3 ficheiros con 22 adicións e 0 borrados
  1. 3 0
      .github/labeler.yml
  2. 17 0
      .github/workflows/flake.yml
  3. 2 0
      flake.nix

+ 3 - 0
.github/labeler.yml

@@ -6,3 +6,6 @@
 
 "packaging › snap":
   - snap/**/*
+
+"flake/nix ❄️":
+  - flake.*

+ 17 - 0
.github/workflows/flake.yml

@@ -0,0 +1,17 @@
+on:
+  pull_request:
+  push:
+    branches: [main]
+
+jobs:
+  build:
+    name: Build Nix targets
+    runs-on: ubuntu-22.04
+    steps:
+      - uses: actions/checkout@v3
+      - name: Check Nix flake inputs
+        uses: DeterminateSystems/flake-checker-action@v4 # This action
+      - name: Install Nix
+        uses: DeterminateSystems/nix-installer-action@v3
+      - name: Build default package
+        run: nix build

+ 2 - 0
flake.nix

@@ -1,4 +1,6 @@
 {
+  description = "The EZA flake for developing and releasing (soon)";
+
   inputs = {
     flake-utils.url = "github:numtide/flake-utils";
     naersk.url = "github:nix-community/naersk";