From 795cb19cd1a1a92dc0e934ea596b8d81455997e9 Mon Sep 17 00:00:00 2001 From: Brian W Bush Date: Fri, 9 Aug 2024 12:55:11 +0000 Subject: [PATCH] Created CI for typechecking library. --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..5ba5a1b --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: CI +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + ALLOWED_URIS: "https://github.com https://api.github.com" + TRUSTED_PUBLIC_KEYS: "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" + SUBSTITUTERS: "https://cache.nixos.org/ https://cache.iog.io" + +on: + pull_request: + push: + branches: + - main +jobs: + typecheck: + name: Build libraries + runs-on: ubuntu-22.04 + steps: + - name: 📥 Checkout repository + uses: actions/checkout@v4 + - name: 🛠️ Install Nix + uses: cachix/install-nix-action@v21 + with: + nix_path: nixpkgs=channel:nixos-unstable + install_url: https://releases.nixos.org/nix/nix-2.10.3/install + extra_nix_config: | + allowed-uris = ${{ env.ALLOWED_URIS }} + trusted-public-keys = ${{ env.TRUSTED_PUBLIC_KEYS }} + substituters = ${{ env.SUBSTITUTERS }} + experimental-features = nix-command flakes + - name: 🏗️ Typecheck library + run: | + nix build --show-trace