mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
170 lines
6.1 KiB
YAML
170 lines
6.1 KiB
YAML
name: Sentinel Build (No Cache)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "15 3 * * Sat" # 11:15PM EST every Friday
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
validation:
|
|
name: "Validation"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: gradle/actions/wrapper-validation@v5
|
|
|
|
build-docker:
|
|
if: (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main') || github.event_name != 'schedule'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- container: wpilib/systemcore-cross-debian:trixie
|
|
artifact-name: Systemcore
|
|
build-options: "-Ponlylinuxsystemcore"
|
|
- container: wpilib/aarch64-cross-debian:trixie
|
|
artifact-name: Arm64
|
|
build-options: "-Ponlylinuxarm64"
|
|
- container: wpilib/systemcore-cross-debian:trixie
|
|
artifact-name: Linux
|
|
build-options: "-Ponlylinuxx86-64"
|
|
name: "Build - ${{ matrix.artifact-name }}"
|
|
runs-on: ubuntu-24.04
|
|
needs: [validation]
|
|
steps:
|
|
- name: Free Disk Space
|
|
uses: jlumbroso/free-disk-space@main
|
|
with:
|
|
tool-cache: false
|
|
android: true
|
|
dotnet: true
|
|
haskell: true
|
|
large-packages: false
|
|
docker-images: false
|
|
swap-storage: false
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Build with Gradle
|
|
uses: wpilibsuite/docker-run-action@v4
|
|
with:
|
|
image: ${{ matrix.container }}
|
|
options: -v ${{ github.workspace }}:/work -w /work -e GITHUB_REF -e CI
|
|
# Start avahi-daemon and build
|
|
run: |
|
|
service dbus start
|
|
avahi-daemon -D
|
|
./gradlew build -PbuildServer -PskipJavaFormat ${{ matrix.build-options }}
|
|
- name: Check free disk space
|
|
run: df .
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: ${{ matrix.artifact-name }}
|
|
path: build/allOutputs
|
|
|
|
build-host:
|
|
if: (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main') || github.event_name != 'schedule'
|
|
env:
|
|
MACOSX_DEPLOYMENT_TARGET: 13.3
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: windows-2022
|
|
artifact-name: Win64Debug
|
|
architecture: x64
|
|
task: "build"
|
|
build-options: "-PciDebugOnly"
|
|
outputs: "build/allOutputs"
|
|
- os: windows-2022
|
|
artifact-name: Win64Release
|
|
architecture: x64
|
|
build-options: "-PciReleaseOnly"
|
|
task: "copyAllOutputs"
|
|
outputs: "build/allOutputs"
|
|
- os: windows-2022
|
|
artifact-name: WinArm64Debug
|
|
architecture: x64
|
|
task: "build"
|
|
build-options: "-PciDebugOnly -Pbuildwinarm64 -Ponlywindowsarm64"
|
|
outputs: "build/allOutputs"
|
|
- os: windows-2022
|
|
artifact-name: WinArm64Release
|
|
architecture: x64
|
|
build-options: "-PciReleaseOnly -Pbuildwinarm64 -Ponlywindowsarm64"
|
|
task: "copyAllOutputs"
|
|
outputs: "build/allOutputs"
|
|
- os: macOS-15
|
|
artifact-name: macOS
|
|
architecture: aarch64
|
|
task: "build"
|
|
outputs: "build/allOutputs"
|
|
- os: windows-2022
|
|
artifact-name: Win64FFI
|
|
architecture: x64
|
|
task: ":ntcoreffi:build"
|
|
build-options: "-Pntcoreffibuild -Pbuildwinarm64"
|
|
outputs: "ntcoreffi/build/outputs"
|
|
name: "Build - ${{ matrix.artifact-name }}"
|
|
runs-on: ${{ matrix.os }}
|
|
needs: [validation]
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 25
|
|
architecture: ${{ matrix.architecture }}
|
|
- name: Import Developer ID Certificate
|
|
uses: wpilibsuite/import-signing-certificate@v3
|
|
with:
|
|
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }}
|
|
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }}
|
|
if: |
|
|
matrix.artifact-name == 'macOS' && (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main')
|
|
- name: Set Keychain Lock Timeout
|
|
run: security set-keychain-settings -lut 21600
|
|
if: |
|
|
matrix.artifact-name == 'macOS' && (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main')
|
|
- name: Check disk free space (Windows)
|
|
if: runner.os == 'Windows'
|
|
run: wmic logicaldisk get caption, freespace
|
|
- name: Check disk free space pre-cleanup (macOS)
|
|
if: runner.os == 'macOS'
|
|
run: df -h .
|
|
- name: Cleanup disk space
|
|
if: runner.os == 'macOS'
|
|
# CodeQL: 5G
|
|
# go: 748M
|
|
# Android: 12G
|
|
run: |
|
|
rm -rf /Users/runner/hostedtoolcache/CodeQL
|
|
rm -rf /Users/runner/hostedtoolcache/go
|
|
rm -rf /Users/runner/Library/Android
|
|
- name: Check disk free space post-cleanup (macOS)
|
|
if: runner.os == 'macOS'
|
|
run: df -h .
|
|
- name: Build with Gradle
|
|
run: ./gradlew ${{ matrix.task }} -PbuildServer -PskipJavaFormat ${{ matrix.build-options }}
|
|
- name: Sign Libraries with Developer ID
|
|
run: ./gradlew copyAllOutputs -PbuildServer -PskipJavaFormat -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} ${{ matrix.build-options }}
|
|
if: |
|
|
matrix.artifact-name == 'macOS' && (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main')
|
|
- name: Check disk free space (Windows)
|
|
if: runner.os == 'Windows'
|
|
run: wmic logicaldisk get caption, freespace
|
|
- name: Check disk free space (macOS)
|
|
if: runner.os == 'macOS'
|
|
run: df -h .
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: ${{ matrix.artifact-name }}
|
|
path: ${{ matrix.outputs }}
|