Skip to content

Commit

Permalink
ci: add gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed May 23, 2024
1 parent 9bdd083 commit a9195cc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "CI"
on:
pull_request:
push:
branches: [main]
jobs:
build:
strategy:
matrix:
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/flake-checker-action@v5
- uses: cachix/install-nix-action@v26
with:
github_access_token: ${{ secrets.GH_TOKEN }}
- uses: cachix/cachix-action@v14
with:
name: r17
# If you chose signing key for write access
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: pre-commit-hooks,nix-community
skipPush: ${{ !(github.ref == 'refs/heads/main' && github.event_name == 'push' && matrix.os == 'macos-14') }}
- run: nix build .#darwinConfigurations.eR17.system

0 comments on commit a9195cc

Please sign in to comment.