Skip to content

Commit

Permalink
[stoream]: add github workflow for stoream-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuhan committed May 17, 2024
1 parent 49f7174 commit c70f46c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/stoream-engine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: stoream-engine

on:
pull_request:
branches: ['**']
push:
branches: ['**']
tags: [v*]

jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest]
scala: [3.3.1]
java: [graal_22.3.0@17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Java (temurin@8)
if: matrix.java == 'temurin@8'
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
cache: sbt

- name: Setup GraalVM (graal_22.3.0@17)
if: matrix.java == 'graal_22.3.0@17'
uses: graalvm/setup-graalvm@v1
with:
version: 22.3.0
java-version: 17
components: native-image
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: sbt

- name: Build
run: sbt compile
working-directory: ./stoream-engine

- name: Test
run: sbt test
working-directory: ./stoream-engine

0 comments on commit c70f46c

Please sign in to comment.