2021-06-11 00:38:15 +02:00
|
|
|
name: ci
|
2022-07-21 03:40:56 +02:00
|
|
|
|
2021-06-11 00:38:15 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2022-07-21 03:40:56 +02:00
|
|
|
- '*'
|
2021-06-11 00:38:15 +02:00
|
|
|
pull_request:
|
2022-07-21 03:40:56 +02:00
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
2021-06-11 00:38:15 +02:00
|
|
|
jobs:
|
2022-07-21 03:40:56 +02:00
|
|
|
nix-build:
|
2021-06-11 00:38:15 +02:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-07-21 03:40:56 +02:00
|
|
|
os: [ubuntu-latest, macOS-latest]
|
|
|
|
attr: [grpc-haskell-core grpc-haskell grpc]
|
|
|
|
|
2021-06-11 00:38:15 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
2022-07-21 03:40:56 +02:00
|
|
|
|
2021-06-11 00:38:15 +02:00
|
|
|
steps:
|
2022-07-21 03:40:56 +02:00
|
|
|
- uses: actions/checkout@v2.4.0
|
|
|
|
|
|
|
|
- name: Install Nix
|
|
|
|
uses: cachix/install-nix-action@v15
|
2021-06-11 00:38:15 +02:00
|
|
|
with:
|
2022-07-21 03:40:56 +02:00
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
system-features = nixos-test benchmark big-parallel kvm
|
|
|
|
|
|
|
|
- name: Nix build for “${{ matrix.attr }}” on ${{ matrix.os }}
|
|
|
|
run: nix-build -A ${{ matrix.attr }}
|