-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from 4201VitruvianBots/dev-rebase
Merge 'dev-rebase' to 'main'
- Loading branch information
Showing
25 changed files
with
1,439 additions
and
171 deletions.
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,110 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-docker: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- container: wpilib/roborio-cross-ubuntu:2025-22.04 | ||
artifact-name: Athena | ||
build-options: "-Ponlylinuxathena" | ||
- container: wpilib/raspbian-cross-ubuntu:bookworm-22.04 | ||
artifact-name: Arm32 | ||
build-options: "-Ponlylinuxarm32" | ||
- container: wpilib/aarch64-cross-ubuntu:bookworm-22.04 | ||
artifact-name: Arm64 | ||
build-options: "-Ponlylinuxarm64" | ||
- container: wpilib/ubuntu-base:22.04 | ||
artifact-name: Linux | ||
build-options: "" | ||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: ubuntu-22.04 | ||
container: ${{ matrix.container }} | ||
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 | ||
run: ./gradlew build ${{ matrix.build-options }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: build/allOutputs | ||
|
||
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 }} | ||
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 | ||
run: ./gradlew build -Pbuildalldesktop | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.artifact-name }} | ||
path: build/allOutputs | ||
|
||
combine: | ||
name: Combine | ||
needs: [build-docker, build-host] | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: wpilibsuite/build-tools | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: combiner/products/build/allOutputs | ||
- name: Flatten Artifacts | ||
run: rsync -a --delete combiner/products/build/allOutputs/*/* combiner/products/build/allOutputs/ | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Combine | ||
# if: | | ||
# !startsWith(github.ref, 'refs/tags/v') | ||
run: ./gradlew publish -Pthirdparty | ||
working-directory: combiner | ||
# - name: Combine (Release) | ||
# if: | | ||
# github.repository_owner == 'wpilibsuite' && | ||
# startsWith(github.ref, 'refs/tags/v') | ||
# run: | | ||
# ./gradlew publish -Pthirdparty | ||
# working-directory: combiner | ||
# env: | ||
# RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' | ||
# ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | ||
# ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Maven | ||
path: ~/releases |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,60 +1,10 @@ | ||
{ | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"java.server.launchMode": "Standard", | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
"bin/": true, | ||
"**/.classpath": true, | ||
"**/.project": true, | ||
"**/.settings": true, | ||
"**/.factorypath": true, | ||
"**/*~": true | ||
"**/.factorypath": true | ||
}, | ||
"java.test.config": [ | ||
{ | ||
"name": "WPIlibUnitTests", | ||
"workingDirectory": "${workspaceFolder}/build/jni/release", | ||
"vmargs": [ "-Djava.library.path=${workspaceFolder}/build/jni/release" ], | ||
"env": { | ||
"LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" , | ||
"DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
} | ||
}, | ||
], | ||
"java.test.defaultConfig": "WPIlibUnitTests", | ||
"java.import.gradle.annotationProcessing.enabled": false, | ||
"java.completion.favoriteStaticMembers": [ | ||
"org.junit.Assert.*", | ||
"org.junit.Assume.*", | ||
"org.junit.jupiter.api.Assertions.*", | ||
"org.junit.jupiter.api.Assumptions.*", | ||
"org.junit.jupiter.api.DynamicContainer.*", | ||
"org.junit.jupiter.api.DynamicTest.*", | ||
"org.mockito.Mockito.*", | ||
"org.mockito.ArgumentMatchers.*", | ||
"org.mockito.Answers.*", | ||
"edu.wpi.first.units.Units.*" | ||
], | ||
"java.completion.filteredTypes": [ | ||
"java.awt.*", | ||
"com.sun.*", | ||
"sun.*", | ||
"jdk.*", | ||
"org.graalvm.*", | ||
"io.micrometer.shaded.*", | ||
"java.beans.*", | ||
"java.util.Base64.*", | ||
"java.util.Timer", | ||
"java.sql.*", | ||
"javax.swing.*", | ||
"javax.management.*", | ||
"javax.smartcardio.*", | ||
"edu.wpi.first.math.proto.*", | ||
"edu.wpi.first.math.**.proto.*", | ||
"edu.wpi.first.math.**.struct.*", | ||
] | ||
} | ||
"C_Cpp.default.configurationProvider": "vscode-wpilib" | ||
} |
Oops, something went wrong.