Fix duplicate libraries (#101) #235
Workflow file for this run
This file contains hidden or 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
| name: CI | |
| on: [pull_request, push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-docker: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - container: wpilib/systemcore-cross-ubuntu:2027-24.04 | |
| artifact-name: SystemCore | |
| build-options: "-Pplatform=linux-systemcore" | |
| - container: wpilib/aarch64-cross-ubuntu:2027-bookworm-24.04 | |
| artifact-name: Arm64 | |
| build-options: "-Pplatform=linux-arm64" | |
| - container: wpilib/ubuntu-base:24.04 | |
| artifact-name: Linux | |
| build-options: "" | |
| name: "Build - ${{ matrix.artifact-name }}" | |
| runs-on: ubuntu-latest | |
| container: ${{ matrix.container }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| 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: ./gradlew build -PjenkinsBuild ${{ matrix.build-options }} | |
| name: Build with Gradle | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ matrix.artifact-name }} | |
| path: gradleDir/outputs/ | |
| build-windows: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - artifact-name: Win64Release | |
| build-options: "-PskipDebug" | |
| - artifact-name: WinArm64Release | |
| build-options: "-PskipDebug -Pplatform=windows-arm64" | |
| - artifact-name: Win64 | |
| build-options: "-PskipRelease -PskipSources" | |
| - artifact-name: WinArm64 | |
| build-options: "-PskipRelease -PskipSources -Pplatform=windows-arm64" | |
| name: "Build - ${{ matrix.artifact-name }}" | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'temurin' | |
| - uses: ilammy/msvc-dev-cmd@v1.13.0 | |
| - run: | | |
| set PATH=%PATH%;%ANT_HOME%\bin | |
| gradlew build -PjenkinsBuild ${{ matrix.build-options }} | |
| shell: cmd | |
| name: Build with Gradle | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ matrix.artifact-name }} | |
| path: gradleDir/outputs/ | |
| build-mac: | |
| name: "Build - macOS (Arm)" | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'temurin' | |
| - run: ./gradlew build -PjenkinsBuild | |
| name: Build with Gradle | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: macOSArm | |
| path: gradleDir/outputs/ | |
| build-mac-arm: | |
| name: "Build - macOS" | |
| runs-on: macOS-14 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: 'true' | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'temurin' | |
| - run: ./gradlew build -PjenkinsBuild -Pforcealternatemacbuild | |
| name: Build with Gradle | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: macOS | |
| path: gradleDir/outputs/ | |
| make_universal: | |
| name: Make Universal | |
| needs: [build-mac, build-mac-arm] | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: macOS | |
| path: build/downloads | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: macOSArm | |
| path: build/downloads | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 25 | |
| distribution: 'temurin' | |
| - run: ./gradlew copyToUpload -Prunmerge | |
| name: Build with Gradle | |
| if: | | |
| github.repository_owner != 'wpilibsuite' || | |
| (github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/v')) | |
| - 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: | | |
| github.repository_owner == 'wpilibsuite' && | |
| (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | |
| - run: ./gradlew copyToUpload -Prunmerge -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} | |
| name: Sign Binaries with Developer ID | |
| if: | | |
| github.repository_owner == 'wpilibsuite' && | |
| (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: macOSUniversal | |
| path: build/toUpload/ | |
| combine: | |
| name: Combine | |
| needs: [build-docker, build-windows, make_universal] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: wpilibsuite/build-tools | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| path: combiner/products/build/allOutputs | |
| - name: Flatten Artifacts | |
| run: rsync -a --delete combiner/products/build/allOutputs/*/* combiner/products/build/allOutputs/ | |
| - 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@v7 | |
| with: | |
| name: Maven | |
| path: ~/releases |