Github Actions #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PerfIO CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
java: [ '21', '23' ] | |
runs-on: ${{matrix.os}} | |
name: Test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: 'sbt' | |
- name: Set up sbt | |
uses: sbt/setup-sbt@v1 | |
- name: Set up protobuf | |
run: | | |
env | |
mkdir ~/protobuf | |
(cd ~/protobuf && curl -Lo pb.zip https://github.com/protocolbuffers/protobuf/releases/download/v29.0-rc3/protoc-29.0-rc-3-linux-x86_64.zip && unzip pb.zip) | |
- name: Run tests | |
run: sbt test bootstrapProto proto/test |