about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-12-04 08:11:38 -0800
committerFranck Cuny <franck@fcuny.net>2023-12-04 08:11:38 -0800
commitded4fe8c499d2401d648380fe1a59b343a8a5650 (patch)
tree2cae55d9db445c68fefb25cd8c34aa348dc34a2e
parentadditional cleanup for flakes (diff)
downloadworld-ded4fe8c499d2401d648380fe1a59b343a8a5650.tar.gz
add a CI configuration for this repo
-rw-r--r--.github/workflows/ci.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..6d909f7
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,28 @@
+name: "Build flake outputs"
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
+    types: [opened, synchronize]
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        output:
+          - devShell.x86_64-linux
+    steps:
+      - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0
+      - name: Install Nix
+        uses: cachix/install-nix-action@v23
+        with:
+          extra_nix_config: |
+            experimental-features = nix-command flakes
+      - run: nix flake check
+      - run: nix develop -c echo OK