trying to set up CI

This commit is contained in:
Tom Sydney Kerckhove 2022-05-26 12:08:09 +02:00
parent ac5b314270
commit 6520c54360
2 changed files with 46 additions and 0 deletions

2
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,2 @@
custom: https://cs-syd.eu/support
github: [NorfairKing]

44
.github/workflows/nix-build.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: "Nix Build"
on:
pull_request:
push:
branches:
- development
- master
jobs:
hooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: feedback
extraPullNames: validity,sydtest,autodocodec
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build ci.nix -A pre-commit-check
shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: feedback
extraPullNames: validity,sydtest,autodocodec
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build ci.nix -A shell
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: cachix/install-nix-action@v17
- uses: cachix/cachix-action@v10
with:
name: feedback
extraPullNames: validity,sydtest,autodocodec
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build ci.nix -A release