Skip to content

Commit

Permalink
Update build.yml to publish codecov consistently, fix names of jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes committed Mar 31, 2024
1 parent c3bc11e commit e090a91
Showing 1 changed file with 26 additions and 16 deletions.
42 changes: 26 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,35 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven

# Install protoc onto the PATH so that we can test PATH resolution.
- name: Install dependencies
shell: bash
run: |-
set -eux
case "${{ matrix.os-name }}" in
# TODO: uncomment once protoc 4.26.0 is used globally.
#macos-*) brew install protobuf ;;
ubuntu-*) sudo apt -q update && sudo apt -qy install protobuf-compiler ;;
# TODO: uncomment once protoc 4.26.0 is used globally.
#windows-*) choco install protoc ;;
macos-*)
brew install protobuf
;;
ubuntu-*)
sudo apt update -q
sudo apt install protobuf-compiler -qy
;;
windows-*)
choco install protoc
;;
esac
protoc --version
java -version
javac -version
protoc --version || true
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
./mvnw --version
- name: Build and test
shell: bash
Expand All @@ -55,9 +61,11 @@ jobs:
uses: codecov/codecov-action@v3
continue-on-error: true
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}

build-x86_64-oldmaven:
name: mvn 3.8.1 jdk-11/ubuntu-latest/x86_64
build-x86_64-linux-oldmaven:
name: jdk-11/ubuntu-latest/x86_64 (oldest supported Maven)
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -87,8 +95,10 @@ jobs:
uses: codecov/codecov-action@v3
continue-on-error: true
if: always()
with:
token: ${{ secrets.CODECOV_TOKEN }}

build-crossarch-ubuntu:
build-crossarch-linux:
name: jdk-11/ubuntu-latest/${{ matrix.arch }}
runs-on: ubuntu-latest

Expand Down

0 comments on commit e090a91

Please sign in to comment.