From e76e621b6355d24a83c13b8393c88869ce3d71b3 Mon Sep 17 00:00:00 2001 From: Jonas Chevalier Date: Wed, 27 Jan 2021 14:58:47 +0000 Subject: [PATCH] ci: initial setup (#21) --- .github/dependabot.yml | 6 ++++++ .github/workflows/nix.yml | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/nix.yml 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/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000..a45bea9 --- /dev/null +++ b/.github/workflows/nix.yml @@ -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