]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
workflows: nix-build-aarch64: rate limit
authorSomeone Serge <redacted>
Sat, 13 Jan 2024 17:16:54 +0000 (17:16 +0000)
committerSomeone <redacted>
Mon, 22 Jan 2024 12:19:30 +0000 (12:19 +0000)
.github/workflows/nix-ci-aarch64.yml

index be7c26d40bb29275c3e30ecd1996e5897e702841..0c6cf5f091528e348f67c7886e892f1cd4815355 100644 (file)
@@ -2,13 +2,20 @@ name: Nix aarch64 builds
 
 on:
   workflow_dispatch: # allows manual triggering
+  schedule:
+    # Rebuild daily rather than on every push because QEMU is expensive (e.g.
+    # 1.5h instead of minutes with the cold cache).
+    #
+    # randint(0, 59), randint(0, 23)
+    - cron: '26 12 * * *'
+  # But also rebuild if we touched any of the Nix expressions:
   push:
     branches:
       - master
-    paths: ['.github/workflows/**', '**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', '**/*.sh', '**/*.py', '**/*.nix']
+    paths: ['**/*.nix', 'flake.lock']
   pull_request:
     types: [opened, synchronize, reopened]
-    paths: ['**/CMakeLists.txt', '**/Makefile', '**/*.h', '**/*.hpp', '**/*.c', '**/*.cpp', '**/*.cu', '**/*.swift', '**/*.m', '**/*.sh', '**/*.py', '**/*.nix']
+    paths: ['**/*.nix', 'flake.lock']
 
 jobs:
   nix-build-aarch64: