forked from brendanhay/amazonka
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.25 KB
/
build.yml
File metadata and controls
41 lines (33 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: build
on:
push:
branches: null
pull_request:
branches: null
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, ghc: ghc884 }
- { os: ubuntu-latest, ghc: ghc8104 }
- { os: macos-latest, ghc: ghc8104 }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- uses: cachix/install-nix-action@07da2520eebede906fbeefa9dd0a2b635323909d # v12
with:
nix_path: nixpkgs=channel:nixos-20.09
extra_nix_config: |
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://hydra.iohk.io https://cache.nixos.org/
- uses: cachix/cachix-action@6e4751ed42b22f60165d3f266cfa4cce66ae406d # v8
with:
name: amazonka
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- if: ${{ matrix.os != 'macos-latest' }}
run: sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt &
- run: |2
nix-shell -p nix-build-uncached --run \
'nix-build-uncached -A ci --argstr ghcVersion ${{ matrix.ghc }}'