ci: initial setup (#21)

This commit is contained in:
Jonas Chevalier 2021-01-27 14:58:47 +00:00 committed by GitHub
parent 79442b2b4c
commit e76e621b63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

23
.github/workflows/nix.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Nix
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v12
- uses: cachix/cachix-action@v8
with:
name: numtide
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-shell --pure --run "cargo build"
- run: nix-shell --pure --run "cargo test"
- run: nix-build -A defaultNix.packages.x86_64-linux