Skip to content

Commit

Permalink
Initial cachix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
emeinhardt committed Nov 6, 2023
1 parent 0e3e994 commit bcabd8b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Build"
on:
pull_request:
push:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-23.05
install_url: https://releases.nixos.org/nix/nix-2.13.5/install
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cachix configuration
uses: cachix/cachix-action@v12
with:
name: emeinhardt
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: nix-community
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Nix build
run: nix build
25 changes: 25 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Develop"
on:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-23.05
install_url: https://releases.nixos.org/nix/nix-2.13.5/install
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cachix configuration
uses: cachix/cachix-action@v12
with:
name: emeinhardt
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: nix-community
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Nix develop
run: nix develop

0 comments on commit bcabd8b

Please sign in to comment.