|
7 | 7 | workflow_dispatch: |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - validation: |
11 | | - name: "Validation" |
12 | | - runs-on: ubuntu-latest |
13 | | - steps: |
14 | | - - uses: actions/checkout@v4 |
15 | | - - uses: gradle/actions/wrapper-validation@v4 |
16 | | - |
17 | | - build-docker: |
18 | | - needs: [validation] |
19 | | - strategy: |
20 | | - fail-fast: false |
21 | | - matrix: |
22 | | - include: |
23 | | - - container: wpilib/roborio-cross-ubuntu:2025-22.04 |
24 | | - artifact-name: Athena |
25 | | - build-options: "-Ponlylinuxathena" |
26 | | - - container: wpilib/raspbian-cross-ubuntu:bookworm-22.04 |
27 | | - artifact-name: Arm32 |
28 | | - build-options: "-Ponlylinuxarm32" |
29 | | - - container: wpilib/aarch64-cross-ubuntu:bookworm-22.04 |
30 | | - artifact-name: Arm64 |
31 | | - build-options: "-Ponlylinuxarm64" |
32 | | - - container: wpilib/ubuntu-base:22.04 |
33 | | - artifact-name: Linux |
34 | | - build-options: "" |
35 | | - name: "Build - ${{ matrix.artifact-name }}" |
36 | | - runs-on: ubuntu-22.04 |
37 | | - container: ${{ matrix.container }} |
38 | | - steps: |
39 | | - - uses: actions/checkout@v4 |
40 | | - with: |
41 | | - submodules: true |
42 | | - fetch-depth: 0 |
43 | | - - name: Fetch all history and metadata |
44 | | - run: | |
45 | | - git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }} |
46 | | - - name: Setup Gradle |
47 | | - uses: gradle/actions/setup-gradle@v4 |
48 | | - with: |
49 | | - cache-read-only: false |
50 | | - - name: Build with Gradle |
51 | | - run: ./gradlew build ${{ matrix.build-options }} |
52 | | - - name: Publish to Local Maven |
53 | | - run: ./gradlew publish ${{ matrix.build-options }} |
54 | | - - uses: actions/upload-artifact@v4 |
55 | | - with: |
56 | | - name: maven-${{ matrix.artifact-name }} |
57 | | - path: build/repos/releases |
58 | | - |
59 | | - build-host: |
60 | | - needs: [validation] |
61 | | - env: |
62 | | - MACOSX_DEPLOYMENT_TARGET: 13.3 |
63 | | - strategy: |
64 | | - fail-fast: false |
65 | | - matrix: |
66 | | - include: |
67 | | - - os: windows-2022 |
68 | | - artifact-name: Win64 |
69 | | - architecture: x64 |
70 | | - - os: macos-14 |
71 | | - artifact-name: macOS |
72 | | - architecture: aarch64 |
73 | | - name: "Build - ${{ matrix.artifact-name }}" |
74 | | - runs-on: ${{ matrix.os }} |
75 | | - steps: |
76 | | - - uses: actions/checkout@v4 |
77 | | - with: |
78 | | - submodules: true |
79 | | - - name: Fetch all history and metadata |
80 | | - run: git fetch --prune --unshallow |
81 | | - - uses: actions/setup-java@v4 |
82 | | - with: |
83 | | - distribution: 'temurin' |
84 | | - java-version: 17 |
85 | | - architecture: ${{ matrix.architecture }} |
86 | | - - name: Setup Gradle |
87 | | - uses: gradle/actions/setup-gradle@v4 |
88 | | - with: |
89 | | - cache-read-only: false |
90 | | - - name: Build with Gradle |
91 | | - run: ./gradlew build -Pbuildalldesktop |
92 | | - - name: Publish to Local Maven |
93 | | - run: ./gradlew publish -Pbuildalldesktop |
94 | | - - uses: actions/upload-artifact@v4 |
95 | | - with: |
96 | | - name: maven-${{ matrix.artifact-name }} |
97 | | - path: build/repos/releases |
98 | | - |
99 | | - combine: |
100 | | - name: Combine Maven Repositories |
101 | | - needs: [build-docker, build-host] |
102 | | - runs-on: ubuntu-22.04 |
103 | | - steps: |
104 | | - - uses: actions/download-artifact@v4 |
105 | | - with: |
106 | | - pattern: maven-* |
107 | | - path: maven-artifacts |
108 | | - - name: Combine Maven Repositories |
109 | | - run: | |
110 | | - mkdir -p maven-combined |
111 | | - rsync -a maven-artifacts/*/* maven-combined/ |
112 | | - - uses: actions/upload-artifact@v4 |
113 | | - with: |
114 | | - name: Maven |
115 | | - path: maven-combined |
| 10 | + build: |
| 11 | + name: Build |
| 12 | + uses: ./.github/workflows/ci.yml |
116 | 13 |
|
117 | 14 | publish-to-r2: |
118 | 15 | name: Publish to R2 |
119 | | - needs: [combine] |
| 16 | + needs: [build] |
120 | 17 | runs-on: ubuntu-22.04 |
121 | 18 | environment: main |
122 | 19 | steps: |
|
0 commit comments