Skip to content

Commit

Permalink
Updated GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathandao0 committed Jan 14, 2025
1 parent 4bf199b commit a1c8e24
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 50 deletions.
55 changes: 41 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,37 @@ jobs:
matrix:
include:
- container: wpilib/roborio-cross-ubuntu:2025-22.04
artifact-name: Athena
artifact-name: Codex-Athena
build-options: "-Ponlylinuxathena"
- container: wpilib/raspbian-cross-ubuntu:bookworm-22.04
artifact-name: Arm32
artifact-name: Codex-Arm32
build-options: "-Ponlylinuxarm32"
- container: wpilib/aarch64-cross-ubuntu:bookworm-22.04
artifact-name: Arm64
artifact-name: Codex-Arm64
build-options: "-Ponlylinuxarm64"
- container: wpilib/ubuntu-base:22.04
artifact-name: Linux
build-options: ""
artifact-name: Codex-Linux
build-options: "-Ponlylinuxx86-64"
name: "Build - ${{ matrix.artifact-name }}"
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Fetch all history and metadata
run: |
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- name: Build with Gradle
run: ./gradlew build ${{ matrix.build-options }}

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
Expand All @@ -46,48 +53,66 @@ jobs:
matrix:
include:
- os: windows-2022
artifact-name: Win64
artifact-name: Codex-Win64
architecture: x64
- os: macos-14
artifact-name: macOS
artifact-name: Codex-macOS
architecture: aarch64
name: "Build - ${{ matrix.artifact-name }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: true

- name: Fetch all history and metadata
run: git fetch --prune --unshallow
- uses: actions/setup-java@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
architecture: ${{ matrix.architecture }}

- name: Build with Gradle
run: ./gradlew build -Pbuildalldesktop
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: build/allOutputs

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: build/allOutputs

combine:
name: Combine
needs: [build-docker, build-host]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Checkout repoo
uses: actions/checkout@v4
with:
repository: wpilibsuite/build-tools
- uses: actions/download-artifact@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: combiner/products/build/allOutputs

- name: Flatten Artifacts
run: rsync -a --delete combiner/products/build/allOutputs/*/* combiner/products/build/allOutputs/
- uses: actions/setup-java@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17

- name: Combine
# if: |
# !startsWith(github.ref, 'refs/tags/v')
Expand All @@ -104,7 +129,9 @@ jobs:
# RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE'
# ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
# ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
- uses: actions/upload-artifact@v4

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Maven
path: ~/releases
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

16 changes: 0 additions & 16 deletions .idea/gradle.xml

This file was deleted.

5 changes: 0 additions & 5 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

0 comments on commit a1c8e24

Please sign in to comment.