Skip to content

Add CI with actions (#4) #1

Add CI with actions (#4)

Add CI with actions (#4) #1

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v4
build-docker:
strategy:
fail-fast: false
matrix:
include:
- container: wpilib/roborio-cross-ubuntu:2025-22.04
artifact-name: Athena
- container: wpilib/raspbian-cross-ubuntu:bookworm-22.04
artifact-name: Arm32
- container: wpilib/aarch64-cross-ubuntu:bookworm-22.04
artifact-name: Arm64
- container: wpilib/ubuntu-base:22.04
artifact-name: Linux
name: "Build - ${{ matrix.artifact-name }}"
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
needs: [validation]
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Fetch all history and metadata
run: |
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Build with Gradle Java
working-directory: Java
run: ./gradlew build
- name: Build with Gradle C++
working-directory: Cpp
run: ./gradlew build
build-host:
env:
MACOSX_DEPLOYMENT_TARGET: 13.3
strategy:
fail-fast: false
matrix:
include:
- os: windows-2022
artifact-name: Win64
architecture: x64
- os: macos-14
artifact-name: macOS
architecture: aarch64
name: "Build - ${{ matrix.artifact-name }}"
runs-on: ${{ matrix.os }}
needs: [validation]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Fetch all history and metadata
run: git fetch --prune --unshallow
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
architecture: ${{ matrix.architecture }}
- name: Build with Gradle Java
working-directory: Java
run: ./gradlew build
- name: Build with Gradle C++
working-directory: Cpp
run: ./gradlew build