Correct FieldData de/serialization #319
Workflow file for this run
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-latest | |
artifact-name: Win64 | |
architecture: x64 | |
arch-override: none | |
- os: macos-latest | |
artifact-name: macOS | |
architecture: x64 | |
arch-override: none | |
- os: ubuntu-latest | |
artifact-name: Linux | |
architecture: x64 | |
arch-override: none | |
- os: macos-latest | |
artifact-name: macOSArm | |
architecture: x64 | |
arch-override: macarm64 | |
- os: ubuntu-latest | |
artifact-name: LinuxArm32 | |
architecture: x64 | |
arch-override: linuxarm32 | |
- os: ubuntu-latest | |
artifact-name: LinuxArm64 | |
architecture: x64 | |
arch-override: linuxarm64 | |
name: "Build - ${{ matrix.artifact-name }}" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'zulu' | |
architecture: ${{ matrix.architecture }} | |
- name: Install dependencies | |
run: sudo apt-get install -y libgtk2.0-0 | |
if: runner.os == 'Linux' | |
- uses: wpilibsuite/import-signing-certificate@v1 | |
with: | |
certificate-data: ${{ secrets.APPLE_CERTIFICATE_DATA }} | |
certificate-passphrase: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
keychain-password: ${{ secrets.APPLE_KEYCHAIN_PASSWORD }} | |
if: | | |
startsWith(matrix.artifact-name, 'macOS') && (github.repository_owner == 'wpilibsuite') && | |
(startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/v')) | |
- name: Build with Gradle | |
run: ./gradlew build -PbuildServer -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} | |
if: ${{ (matrix.arch-override == 'none') && (!github.repository_owner == 'wpilibsuite' || !startsWith(github.ref, 'refs/tags/v')) }} | |
- name: Build with Gradle (Release) | |
run: ./gradlew build -PbuildServer -PreleaseMode -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} | |
if: ${{ (matrix.arch-override == 'none') && (github.repository_owner == 'wpilibsuite' && startsWith(github.ref, 'refs/tags/v')) }} | |
- name: Build Cross with Gradle | |
run: ./gradlew copyAllOutputs -PArchOverride=${{ matrix.arch-override }} -PbuildServer -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} | |
if: ${{ (matrix.arch-override != 'none') && (!github.repository_owner == 'wpilibsuite' || !startsWith(github.ref, 'refs/tags/v')) }} | |
- name: Build Cross with Gradle (Release) | |
run: ./gradlew copyAllOutputs -PArchOverride=${{ matrix.arch-override }} -PbuildServer -PreleaseMode -PdeveloperID=${{ secrets.APPLE_DEVELOPER_ID }} | |
if: ${{ (matrix.arch-override != 'none') && (github.repository_owner == 'wpilibsuite' && startsWith(github.ref, 'refs/tags/v')) }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.artifact-name }} | |
path: build/allOutputs | |
combine: | |
runs-on: ubuntu-latest | |
needs: build | |
name: "Combine" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: 'zulu' | |
- uses: actions/download-artifact@v3 | |
with: | |
path: build/allOutputs | |
- name: Flatten Artifacts | |
run: | | |
rsync -a --delete --remove-source-files build/allOutputs/*/* build/allOutputs | |
find build/allOutputs -type d -empty -delete | |
- name: Combine (PR) | |
run: ./gradlew publish -PbuildServer -PprCombinePublish | |
if: | | |
(github.repository_owner != 'wpilibsuite') || | |
(github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/v')) | |
- name: Combine (Master) | |
run: ./gradlew publish -PbuildServer | |
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/main' }} | |
env: | |
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' | |
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
- name: Combine (Release) | |
run: ./gradlew publish -PbuildServer -PreleaseMode | |
if: ${{ github.repository_owner == 'wpilibsuite' && startsWith(github.ref, 'refs/tags/v') }} | |
env: | |
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' | |
ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} | |
ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: "Maven" | |
path: ~/releases |