aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan Mohd <sinan@sinanmohd.com>2024-06-28 17:55:19 +0530
committerGitHub <noreply@github.com>2024-06-28 17:55:19 +0530
commitf93d74d857bdb006fbd4d6691b058985dd2e6e51 (patch)
treeb1333dcb2a0f84fe71e6be6cbcb4cb948fd4e5a6
parent52c3389547e821c481213f755f912f4021d01536 (diff)
parent424cc0634ecbb6cdf7cd5ea6c615b82c47dfb34b (diff)
Merge pull request #3 from SomeoneSerge/gha
github actions: init
-rw-r--r--.github/dependabot.yml6
-rw-r--r--.github/workflows/build.yml24
2 files changed, 30 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..5ace460
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,6 @@
+version: 2
+updates:
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: "weekly"
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..4ae65c3
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,24 @@
+name: "nix-build"
+on:
+ pull_request_target:
+ branches:
+ - 'master'
+ push:
+ branches:
+ - 'master'
+ workflow_dispatch:
+jobs:
+ nix-build:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ ubuntu-latest, macos-latest ]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v12
+ - uses: DeterminateSystems/magic-nix-cache-action@v7
+ - name: Build some-pkgs
+ run: nix run github:Mic92/nix-fast-build -- --skip-cached --no-nom --flake ".#packages"