gRPC-haskell/.github/workflows/ci.yml

32 lines
680 B
YAML
Raw Normal View History

name: ci
2022-07-21 03:40:56 +02:00
on:
push:
branches:
2022-07-21 03:40:56 +02:00
- '*'
pull_request:
2022-07-21 03:40:56 +02:00
branches:
- '*'
jobs:
2022-07-21 03:40:56 +02:00
nix-build:
strategy:
matrix:
2022-07-21 03:40:56 +02:00
os: [ubuntu-latest, macOS-latest]
2022-07-21 03:43:37 +02:00
attr: [grpc-haskell-core, grpc-haskell, grpc]
2022-07-21 03:40:56 +02:00
runs-on: ${{ matrix.os }}
2022-07-21 03:40:56 +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
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 }}