From 40b4983b0b5594dece4270688bae667277848d2e Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Wed, 5 Jun 2024 20:48:45 -0700 Subject: [PATCH] Update to latest actions versions --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de82eaf0..905189dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: fail-fast: false matrix: include: - - container: wpilib/ubuntu-base:18.04 + - container: wpilib/roborio-cross-ubuntu:2024-22.04 artifact-name: Linux name: "Test - ${{ matrix.artifact-name }}" runs-on: ubuntu-latest @@ -16,12 +16,18 @@ jobs: env: DISPLAY: ':10' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: 'temurin' - name: Install and start xvfb run: | sudo apt-get update sudo apt-get install -y xvfb - Xvfb :10 & + Xvfb $DISPLAY & - name: Check run: ./gradlew check -PbuildServer @@ -30,22 +36,22 @@ jobs: fail-fast: false matrix: include: - - os: windows-latest + - os: windows-2022 artifact-name: Win64 architecture: x64 - - os: windows-latest - artifact-name: Win32 - architecture: x86 - - os: macos-latest + - os: macos-12 artifact-name: macOS architecture: x64 name: "Test - ${{ matrix.artifact-name }}" runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 with: - java-version: 11 + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: 'temurin' architecture: ${{ matrix.architecture }} - name: Check run: ./gradlew check -PbuildServer @@ -55,12 +61,13 @@ jobs: needs: [test-docker, test-host] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Fetch all history and metadata - run: git fetch --prune --unshallow - - uses: actions/setup-java@v1 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 + distribution: 'temurin' - name: Publish if: | !startsWith(github.ref, 'refs/tags/v') && @@ -84,7 +91,7 @@ jobs: RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE' ARTIFACTORY_PUBLISH_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} ARTIFACTORY_PUBLISH_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: RobotBuilder path: build/libs/RobotBuilder-all.jar