From 27406903819a23199aa9c062125adbf96c9a3169 Mon Sep 17 00:00:00 2001 From: Viacheslav Lotsmanov Date: Thu, 21 Jul 2022 04:40:56 +0300 Subject: [PATCH] debugging: update ci configuration --- .github/workflows/ci.yml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0571e93..83f144a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}