Skip to content

Update library and styleguide version (#49) #273

Update library and styleguide version (#49)

Update library and styleguide version (#49) #273

Workflow file for this run

name: Bazel
on: [pull_request, push]
jobs:
build-native:
strategy:
fail-fast: false
matrix:
include:
- { os: windows-latest, architecture: x64, config: "--noenable_bzlmod" }
- { os: windows-latest, architecture: x64, config: "--enable_bzlmod" }
- { os: macos-latest, architecture: x64, config: "--noenable_bzlmod" }
- { os: macos-latest, architecture: x64, config: "--enable_bzlmod" }
- { os: ubuntu-latest, architecture: x64, config: "--noenable_bzlmod" }
- { os: ubuntu-latest, architecture: x64, config: "--enable_bzlmod" }
name: "Build - ${{ matrix.os }} ${{ matrix.architecture }} ${{ matrix.config }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: bazelbuild/setup-bazelisk@v3
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
architecture: x64
# Unix systems sometimes fail to create the symlink the first time around
- name: Build (Allow failure)
run: bazel build ... --nojava_header_compilation -k ${{ matrix.config }} || true
shell: bash
- name: Build
run: bazel build ... -k ${{ matrix.config }}
shell: bash
build-native-testless:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, architecture: x64, config: "--config=for-roborio --noenable_bzlmod" }
- { os: ubuntu-latest, architecture: x64, config: "--config=for-roborio --enable_bzlmod" }
name: "Build - ${{ matrix.os }} ${{ matrix.architecture }} ${{ matrix.config }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: bazelbuild/setup-bazelisk@v3
- name: Build
run: bazel build ... --nojava_header_compilation -k ${{ matrix.config }}
shell: bash
repin-maven:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- run: bazel run @unpinned_maven//:pin --noenable_bzlmod
- run: git diff HEAD
- uses: actions/upload-artifact@v4
with:
name: Re-pinned maven
path: build_scripts/bazel/deps/maven_install.json