-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66e2046
commit 4ab32a0
Showing
4 changed files
with
58 additions
and
161 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 |
---|---|---|
|
@@ -12,18 +12,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- container: wpilib/roborio-cross-ubuntu:2024-22.04 | ||
artifact-name: Athena | ||
build-options: "-Pplatform=linux-athena" | ||
- container: wpilib/raspbian-cross-ubuntu:bullseye-22.04 | ||
artifact-name: Arm32 | ||
build-options: "-Pplatform=linux-arm32" | ||
- container: wpilib/aarch64-cross-ubuntu:bullseye-22.04 | ||
artifact-name: Arm64 | ||
build-options: "-Pplatform=linux-arm64" | ||
- container: wpilib/ubuntu-base:22.04 | ||
artifact-name: Linux | ||
build-options: "" | ||
build-options: -Pplatform=x64-linux | ||
|
||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: ubuntu-latest | ||
|
@@ -34,14 +25,12 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- run: sudo apt-get update && sudo apt-get install ant -y && sudo rm -rf /var/lib/apt/lists/* && sudo rm -f /bin/ant && sudo ln -s /usr/share/ant/bin/ant /bin/ant | ||
name: Install Ant | ||
- run: rm -rf /usr/local/arm-linux-gnueabihf && curl -SL https://github.com/wpilibsuite/opensdk/releases/download/v2023-9/armhf-raspi-bullseye-2023-x86_64-linux-gnu-Toolchain-10.2.0.tgz | sh -c 'mkdir -p /usr/local && cd /usr/local && tar xzf - --strip-components=2' | ||
name: Replace arm32 compiler | ||
if: matrix.artifact-name == 'Arm32' | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- uses: lukka/[email protected] | ||
with: | ||
runVcpkgInstall: true | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install | ||
name: install packages | ||
|
@@ -57,24 +46,12 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- artifact-name: Win64Release | ||
architecture: x64 | ||
build-options: "-PskipDebug" | ||
- artifact-name: Win32Release | ||
architecture: x86 | ||
build-options: "-PskipDebug" | ||
- artifact-name: WinArm64Release | ||
architecture: x64 | ||
build-options: "-PskipDebug -Pplatform=windows-arm64" | ||
- artifact-name: Win64 | ||
architecture: x64 | ||
build-options: "-PskipRelease -PskipSources" | ||
- artifact-name: Win32 | ||
architecture: x86 | ||
build-options: "-PskipRelease -PskipSources" | ||
- artifact-name: WinArm64 | ||
architecture: x64 | ||
build-options: "-PskipRelease -PskipSources -Pplatform=windows-arm64" | ||
tool-arch: amd64_arm64 | ||
build-options: -Pplatform=arm64-windows | ||
- artifact-name: Win64 | ||
tool-arch: amd64 | ||
build-options: -Pplatform=x64-windows | ||
|
||
name: "Build - ${{ matrix.artifact-name }}" | ||
runs-on: windows-2019 | ||
|
@@ -84,27 +61,21 @@ jobs: | |
submodules: 'true' | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
architecture: ${{ matrix.architecture }} | ||
- name: Set Java Heap Size | ||
run: sed -i 's/-Xmx2g/-Xmx1g/g' gradle.properties | ||
if: matrix.architecture == 'x86' | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- uses: lukka/[email protected] | ||
with: | ||
runVcpkgInstall: true | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install | ||
- uses: ilammy/[email protected] | ||
with: | ||
arch: ${{ matrix.tool-arch }} | ||
- run: vcpkg install --triplet=arm64-windows | ||
name: install packages | ||
- run: | | ||
cd vcpkg_installed | ||
ls | ||
name: show | ||
- run: | | ||
@call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat" | ||
set PATH=%PATH%;%ANT_HOME%\bin | ||
gradlew publish ${{ matrix.build-options }} | ||
shell: cmd | ||
if: matrix.artifact-name == 'WinArm64' | ||
- run: vcpkg install --triplet=x64-windows | ||
name: install packages | ||
if: matrix.artifact-name == 'Win64' | ||
- run: ./gradlew publish ${{ matrix.build-options }} | ||
name: Build with Gradle | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -120,17 +91,16 @@ jobs: | |
submodules: 'true' | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- run: brew install cmake ninja | ||
name: install ninja | ||
- uses: lukka/[email protected] | ||
with: | ||
runVcpkgInstall: true | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install | ||
- run: vcpkg install --triplet=x64-osx | ||
name: install packages | ||
- run: ./gradlew publish | ||
- run: ./gradlew publish -Pplatform=x64-osx | ||
name: Build with Gradle | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -146,17 +116,16 @@ jobs: | |
submodules: 'true' | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- run: brew install cmake ninja | ||
name: install ninja | ||
- uses: lukka/[email protected] | ||
with: | ||
runVcpkgInstall: true | ||
vcpkgGitCommitId: '29b2ea2d4b6197e66ef346e62ccbba35b55b7de5' | ||
- run: vcpkg install | ||
- run: vcpkg install --triplet=arm64-osx | ||
name: install packages | ||
- run: ./gradlew publish -Pforcealternatemacbuild | ||
- run: ./gradlew publish -Pplatform=arm64-osx | ||
name: Build with Gradle | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -179,7 +148,7 @@ jobs: | |
path: build/downloads | ||
- uses: actions/setup-java@v4 | ||
with: | ||
java-version: 11 | ||
java-version: 17 | ||
distribution: 'zulu' | ||
- run: ./gradlew copyToUpload -Prunmerge | ||
name: Build with Gradle | ||
|
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 +1,5 @@ | ||
apply from: 'publish.gradle' | ||
if (project.hasProperty('runmerge')) { | ||
apply from: 'merge.gradle' | ||
} else { | ||
apply from: 'publish.gradle' | ||
} |
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