Skip to content

Commit

Permalink
Yeet combiner
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Nov 1, 2023
1 parent 24b8f70 commit 342cbfd
Showing 1 changed file with 40 additions and 34 deletions.
74 changes: 40 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ jobs:
with:
name: ${{ matrix.artifact-name }}
path: gradleDir/outputs/
- name: Upload to maven (if tagged)
if: |
github.repository_owner == 'PhotonVision' &&
startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publish -Pthirdparty
env:
MAVEN_PUBLISH_USERNAME: ghactions
MAVEN_PUBLISH_URL: 'https://maven.photonvision.org/repository/internal'
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

build-windows:
strategy:
Expand Down Expand Up @@ -95,6 +105,16 @@ jobs:
with:
name: ${{ matrix.artifact-name }}
path: gradleDir/outputs/
- name: Upload to maven (if tagged)
if: |
github.repository_owner == 'PhotonVision' &&
startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publish -Pthirdparty
env:
MAVEN_PUBLISH_USERNAME: ghactions
MAVEN_PUBLISH_URL: 'https://maven.photonvision.org/repository/internal'
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

build-mac:
name: "Build - macOS"
Expand All @@ -113,6 +133,16 @@ jobs:
with:
name: macOS
path: gradleDir/outputs/
- name: Upload to maven (if tagged)
if: |
github.repository_owner == 'PhotonVision' &&
startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publish -Pthirdparty
env:
MAVEN_PUBLISH_USERNAME: ghactions
MAVEN_PUBLISH_URL: 'https://maven.photonvision.org/repository/internal'
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

build-mac-arm:
name: "Build - macOS (Arm)"
Expand All @@ -131,6 +161,16 @@ jobs:
with:
name: macOSArm
path: gradleDir/outputs/
- name: Upload to maven (if tagged)
if: |
github.repository_owner == 'PhotonVision' &&
startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publish -Pthirdparty
env:
MAVEN_PUBLISH_USERNAME: ghactions
MAVEN_PUBLISH_URL: 'https://maven.photonvision.org/repository/internal'
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

make_universal:
name: Make Universal
Expand Down Expand Up @@ -173,37 +213,3 @@ jobs:
with:
name: macOSUniversal
path: build/toUpload/

combine:
name: Combine
needs: [build-docker, build-windows, make_universal]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: photonvision/build-tools
- uses: actions/download-artifact@v3
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 == 'PhotonVision' &&
startsWith(github.ref, 'refs/tags/v')
run: |
./gradlew publish -Pthirdparty
working-directory: combiner
env:
MAVEN_PUBLISH_USERNAME: ghactions
MAVEN_PUBLISH_URL: 'https://maven.photonvision.org/repository/internal'
MAVEN_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
- uses: actions/upload-artifact@v3
with:
name: Maven
path: ~/releases

0 comments on commit 342cbfd

Please sign in to comment.