From 23a303f2449166986c76152f62db10e06fafd5ac Mon Sep 17 00:00:00 2001 From: Jamie Bertram Date: Wed, 16 Mar 2022 14:40:48 -0600 Subject: [PATCH] Create build.yaml --- .github/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..882e521 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,30 @@ +name: Build +env: + CACHE_NAME: marlowe-temp + TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= purescript-unlift.cachix.org-1:1gPjVFpu4QjaAT3tRurCioX+BC23V7mjvFwpP5bV0Ec=" + SUBSTITUTERS: "https://cache.nixos.org/ https://purescript-unlift.cachix.org" +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.4 + - uses: cachix/install-nix-action@v16 + with: + nix_path: nixpkgs=channel:nixos-unstable + install_url: https://releases.nixos.org/nix/nix-2.5.1/install + extra_nix_config: | + trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }} + substituters = ${{ env.SUBSTITUTERS }} + experimental-features = nix-command flakes + - uses: cachix/cachix-action@v10 + with: + name: ${{ env.CACHE_NAME }} + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: nix build