diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index a66c582..be1b86b 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -14,20 +14,29 @@ on: - "flake.lock" - "agora.cabal" jobs: - check-formatting: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - - uses: actions/cache@v2.1.4 - name: Cache stack + - uses: cachix/install-nix-action@v13 + name: Set up nix and IOHK cache with: - path: ~/.stack - key: ${{ runner.os }}-stack-formatting - restore-keys: ${{ runner.os }}-stack- - - - run: stack install fourmolu - name: "Install fourmolu" - - - run: ./.github/format.sh - name: "Run fourmolu" + nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= + substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/ + - uses: cachix/cachix-action@v10 + with: + name: mlabs + authToken: ${{ secrets.CACHIX_KEY }} + - name: Cache cabal folder + id: cabal + uses: actions/cache@v2.1.4 + with: + path: | + ~/.cabal/packages + ~/.cabal/store + dist-newstyle + key: ${{ runner.os }}-cabal + - name: Build the full ci derivation + run: nix build .#check.x86_64-linux --extra-experimental-features nix-command --extra-experimental-features flakes