-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
221 changed files
with
4,947 additions
and
1,768 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 |
---|---|---|
|
@@ -48,13 +48,13 @@ jobs: | |
fetch-depth: 0 | ||
- name: Fetch tags | ||
run: git fetch --tags --force | ||
- name: Install RoboRIO Toolchain | ||
run: ./gradlew installRoboRioToolchain | ||
- name: Install Java 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
- name: Install RoboRIO Toolchain | ||
run: ./gradlew installRoboRioToolchain | ||
# Need to publish to maven local first, so that C++ sim can pick it up | ||
# Still haven't figured out how to make the vendordep file be copied before trying to build examples | ||
- name: Publish photonlib to maven local | ||
|
@@ -85,7 +85,7 @@ jobs: | |
- name: Fetch tags | ||
run: git fetch --tags --force | ||
- name: Install Java 17 | ||
uses: actions/setup-java@v3 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: temurin | ||
|
@@ -115,6 +115,10 @@ jobs: | |
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install graphviz | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install graphviz | ||
- name: Install dependencies | ||
working-directory: docs | ||
run: | | ||
|
@@ -220,7 +224,7 @@ jobs: | |
combine: | ||
name: Combine | ||
needs: [build-photonlib-docker, build-photonlib-host] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -261,11 +265,11 @@ jobs: | |
artifact-name: macOSArm | ||
architecture: x64 | ||
arch-override: macarm64 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: Linux | ||
architecture: x64 | ||
arch-override: linuxx64 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
architecture: x64 | ||
arch-override: linuxarm64 | ||
|
@@ -283,6 +287,9 @@ jobs: | |
java-version: 17 | ||
distribution: temurin | ||
architecture: ${{ matrix.architecture }} | ||
- name: Install Arm64 Toolchain | ||
run: ./gradlew installArm64Toolchain | ||
if: ${{ (matrix.artifact-name) == 'LinuxArm64' }} | ||
- run: | | ||
rm -rf photon-server/src/main/resources/web/* | ||
mkdir -p photon-server/src/main/resources/web/docs | ||
|
@@ -301,7 +308,7 @@ jobs: | |
path: photon-server/src/main/resources/web/docs | ||
- run: | | ||
chmod +x gradlew | ||
./gradlew photon-server:shadowJar -PArchOverride=${{ matrix.arch-override }} | ||
./gradlew photon-targeting:jar photon-server:shadowJar -PArchOverride=${{ matrix.arch-override }} | ||
if: ${{ (matrix.arch-override != 'none') }} | ||
- run: | | ||
chmod +x gradlew | ||
|
@@ -311,6 +318,10 @@ jobs: | |
with: | ||
name: jar-${{ matrix.artifact-name }} | ||
path: photon-server/build/libs | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: photon-targeting_jar-${{ matrix.artifact-name }} | ||
path: photon-targeting/build/libs | ||
|
||
run-smoketest-native: | ||
needs: [build-package] | ||
|
@@ -319,7 +330,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: jar-Linux | ||
extraOpts: -Djdk.lang.Process.launchMechanism=vfork | ||
- os: windows-latest | ||
|
@@ -344,7 +355,7 @@ jobs: | |
- run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes libcholmod3 liblapack3 libsuitesparseconfig5 | ||
if: ${{ (matrix.os) == 'ubuntu-latest' }} | ||
if: ${{ (matrix.os) == 'ubuntu-22.04' }} | ||
# and actually run the jar | ||
- run: java -jar ${{ matrix.extraOpts }} *.jar --smoketest | ||
if: ${{ (matrix.os) != 'windows-latest' }} | ||
|
@@ -358,7 +369,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: RaspberryPi | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-4/photonvision_raspi.img.xz | ||
|
@@ -397,46 +408,52 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: RaspberryPi | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-4/photonvision_raspi.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_raspi.img.xz | ||
cpu: cortex-a7 | ||
image_additional_mb: 0 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: limelight2 | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-4/photonvision_limelight.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_limelight.img.xz | ||
cpu: cortex-a7 | ||
image_additional_mb: 0 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: limelight3 | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-4/photonvision_limelight3.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_limelight3.img.xz | ||
cpu: cortex-a7 | ||
image_additional_mb: 0 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: orangepi5 | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-3/photonvision_opi5.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_opi5.img.xz | ||
cpu: cortex-a8 | ||
image_additional_mb: 1024 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: orangepi5b | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-3/photonvision_opi5b.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_opi5b.img.xz | ||
cpu: cortex-a8 | ||
image_additional_mb: 1024 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: orangepi5plus | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-3/photonvision_opi5plus.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_opi5plus.img.xz | ||
cpu: cortex-a8 | ||
image_additional_mb: 1024 | ||
- os: ubuntu-latest | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: orangepi5pro | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-3/photonvision_opi5pro.img.xz | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_opi5pro.img.xz | ||
cpu: cortex-a8 | ||
image_additional_mb: 1024 | ||
- os: ubuntu-22.04 | ||
artifact-name: LinuxArm64 | ||
image_suffix: orangepi5max | ||
image_url: https://github.com/PhotonVision/photon-image-modifier/releases/download/v2025.0.0-beta-6/photonvision_opi5max.img.xz | ||
cpu: cortex-a8 | ||
image_additional_mb: 1024 | ||
|
||
|
@@ -509,10 +526,19 @@ jobs: | |
**/photonlib*.zip | ||
if: github.event_name == 'push' | ||
# Upload all jars and xz archives | ||
- uses: softprops/action-gh-release@v1 | ||
# Split into two uploads to work around max size limits in action-gh-releases | ||
# https://github.com/softprops/action-gh-release/issues/353 | ||
- uses: softprops/[email protected] | ||
with: | ||
files: | | ||
**/*.xz | ||
**/*orangepi5*.xz | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: softprops/[email protected] | ||
with: | ||
files: | | ||
**/!(*orangepi5*).xz | ||
**/*.jar | ||
**/photonlib*.json | ||
**/photonlib*.zip | ||
|
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
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
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
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 |
---|---|---|
|
@@ -21,7 +21,7 @@ on: | |
|
||
jobs: | ||
buildAndDeploy: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout code | ||
|
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
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
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
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
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
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
Oops, something went wrong.