Skip to content

Commit

Permalink
Add: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
muqiuhan committed Sep 13, 2023
1 parent f3204cf commit 2a1d828
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/BuildAndTest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Test

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

jobs:
build:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-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

- name: Test
run: sbt test

0 comments on commit 2a1d828

Please sign in to comment.