Skip to content

feat: add gazelle example (#63) #74

feat: add gazelle example (#63)

feat: add gazelle example (#63) #74

name: "Build projects"
on:
pull_request:
push:
branches:
- "master"
jobs:
full-build:
name: build ${{ matrix.project }} on ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
project: [ bzl4, bzl5_bzlmod, bzl7 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses:
actions/[email protected]
# Flakes do not like shallow clones
with:
fetch-depth: 0
# Mandatory to install 'coreutils' on MacOS
- name: Install coreutils on macOS
if: startsWith(matrix.os, 'macos')
run: |
brew install coreutils
- name: Install nix on macOS
if: startsWith(matrix.os, 'macos')
uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build all
run: ./nix-shell.sh -- --run 'cd projects/${{ matrix.project }}; bazel build //...'