Skip to content

chore(deps): rules_nipxkgs update #94

chore(deps): rules_nipxkgs update

chore(deps): rules_nipxkgs update #94

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 ]
project: [ 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 //...; cat $(bazel info output_base)/external/_main~non_module_deps~gcc_12_info/CC_TOOLCHAIN_INFO; bat --paging=never $(bazel info output_base)/external/_main~non_module_deps~gcc_12/BUILD.bazel'