Skip to content

Commit 335c4e3

Browse files
author
Guannan Wei
committed
add workflow
1 parent e4d0dcf commit 335c4e3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/scala.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Scala CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-20.04
13+
defaults:
14+
run:
15+
working-directory: ./
16+
17+
steps:
18+
- name: Checkout repository and submodules
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
- name: Set up JDK
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: 'temurin'
26+
java-version: '11'
27+
- name: Set up dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git g++ cmake bison flex libboost-all-dev python
31+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y perl minisat curl gnupg2 locales clang-11 wget
32+
- name: Install wasmfx-tools
33+
run: |
34+
#cd third-party/wasmfx-tools
35+
#cargo build --release
36+
- name: Run tests
37+
run: |
38+
sbt 'test'
39+
#sbt 'testOnly wasm.TestEval'
40+
#sbt 'testOnly wasm.TestScriptRun'
41+
#sbt 'testOnly wasm.TestTFP'
42+
#sbt 'testOnly wasm.TestFX'

0 commit comments

Comments
 (0)