-
Notifications
You must be signed in to change notification settings - Fork 613
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wpilibsuite:main' into PhysicsSimTorqueCurrent
- Loading branch information
Showing
2 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
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: | ||
build-docker: | ||
if: (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main') || github.event_name != 'schedule' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: wpilib/roborio-cross-ubuntu:2024-22.04 | ||
artifact-name: Athena | ||
build-options: "-Ponlylinuxathena" | ||
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04 | ||
artifact-name: Arm32 | ||
build-options: "-Ponlylinuxarm32" | ||
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04 | ||
artifact-name: Arm64 | ||
build-options: "-Ponlylinuxarm64" | ||
- container: wpilib/ubuntu-base:22.04 | ||
artifact-name: Linux | ||
build-options: "-Ponlylinuxx86-64" | ||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: ubuntu-22.04 | ||
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@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build with Gradle | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ${{ matrix.container }} | ||
options: -v ${{ github.workspace }}:/work -w /work -e GITHUB_REF -e CI | ||
run: df . && rm -f semicolon_delimited_script && echo $GITHUB_REF && ./gradlew build -PbuildServer -PskipJavaFormat ${{ matrix.build-options }} | ||
- name: Check free disk space | ||
run: df . | ||
- uses: actions/upload-artifact@v4 | ||
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-14 | ||
artifact-name: macOS | ||
architecture: aarch64 | ||
task: "build" | ||
outputs: "build/allOutputs" | ||
- os: windows-2022 | ||
artifact-name: Win32 | ||
architecture: x86 | ||
task: ":ntcoreffi:build" | ||
outputs: "ntcoreffi/build/outputs" | ||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
architecture: ${{ matrix.architecture }} | ||
- name: Import Developer ID Certificate | ||
uses: wpilibsuite/import-signing-certificate@v2 | ||
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 3600 | ||
if: | | ||
matrix.artifact-name == 'macOS' && (github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main') | ||
- name: Set Java Heap Size | ||
run: sed -i 's/-Xmx2g/-Xmx1g/g' gradle.properties | ||
if: matrix.artifact-name == 'Win32' | ||
- name: Check disk free space (Windows) | ||
run: wmic logicaldisk get caption, freespace | ||
if: matrix.os == 'windows-2022' | ||
- name: Check disk free space pre-cleanup (macOS) | ||
run: df -h . | ||
if: matrix.os == 'macOS-14' | ||
- name: Cleanup disk space | ||
# 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 | ||
if: matrix.os == 'macOS-14' | ||
- name: Check disk free space post-cleanup (macOS) | ||
run: df -h . | ||
if: matrix.os == 'macOS-14' | ||
- 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) | ||
run: wmic logicaldisk get caption, freespace | ||
if: matrix.os == 'windows-2022' | ||
- name: Check disk free space (macOS) | ||
run: df -h . | ||
if: matrix.os == 'macOS-14' | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: ${{ matrix.outputs }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters