Skip to content

Commit 8157f95

Browse files
committed
trying to fix builds again
1 parent c0c5107 commit 8157f95

2 files changed

Lines changed: 8 additions & 108 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
workflow_call:
47

58
jobs:
69
validation:

.github/workflows/deploy.yml

Lines changed: 4 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -7,116 +7,13 @@ on:
77
workflow_dispatch:
88

99
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
11613

11714
publish-to-r2:
11815
name: Publish to R2
119-
needs: [combine]
16+
needs: [build]
12017
runs-on: ubuntu-22.04
12118
environment: main
12219
steps:

0 commit comments

Comments
 (0)