debugging: update ci configuration

This commit is contained in:
Viacheslav Lotsmanov 2022-07-21 04:40:56 +03:00
parent 112777023f
commit 2740690381
No known key found for this signature in database
GPG key ID: D276FF7467007335

View file

@ -1,25 +1,31 @@
name: ci
on:
push:
branches:
- master
- '*'
pull_request:
branches:
- '*'
jobs:
build:
nix-build:
strategy:
matrix:
os:
- ubuntu-latest
- macos-10.15
os: [ubuntu-latest, macOS-latest]
attr: [grpc-haskell-core grpc-haskell grpc]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.4
name: Checkout
- uses: cachix/install-nix-action@v13
name: Install Nix
- uses: cachix/cachix-action@v10
name: Set up Cachix
- uses: actions/checkout@v2.4.0
- name: Install Nix
uses: cachix/install-nix-action@v15
with:
name: awakesecurity
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix-build --attr grpc-haskell
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 }}