From 2922ed5968a3bbba4b086f41662401fde506b4a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Wed, 28 Apr 2021 18:28:44 +0200 Subject: [PATCH] add nix build github workflow --- .github/workflows/nix-build.yaml | 22 ++++++++++++++++++++++ .github/workflows/tests.yaml | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/nix-build.yaml diff --git a/.github/workflows/nix-build.yaml b/.github/workflows/nix-build.yaml new file mode 100644 index 0000000..2802ceb --- /dev/null +++ b/.github/workflows/nix-build.yaml @@ -0,0 +1,22 @@ +name: nix-build + +on: + pull_request: + push: + branches: + - master + +jobs: + nix-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - uses: cachix/install-nix-action@v13 + with: + install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install + install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve' + extra_nix_config: | + experimental-features = nix-command flakes + - run: nix develop -c rustc --version + - run: nix run . -- --version + - run: nix-build diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c820d2f..e8847bf 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,6 +1,7 @@ name: tests on: + pull_request: push: branches: - master