-
Notifications
You must be signed in to change notification settings - Fork 23
100 lines (78 loc) · 2.34 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Continuous Integration
on:
push:
branches:
- master
pull_request:
env:
JAVA_VERSION: '11'
NODE_VERSION: '16.x'
jobs:
run-hello-world:
strategy:
matrix:
os: [windows-latest]
name: Build Effekt compiler and run one test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
cache: 'sbt'
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Set up NodeJS ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run tests
run: sbt "effektJVM/clean; effektJVM/testOnly effekt.JavaScriptTests -- --tests=.*examples[\\/]*pos[\\/]*sideeffects.*; effektJVM/testOnly effekt.JavaScriptTests -- --tests=.*examples[\\/]*neg[\\/]*coverage.*"
build-jar:
strategy:
matrix:
os: [ubuntu-latest]
name: Build Effekt compiler and run tests
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'zulu'
cache: 'sbt'
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Update apt database
if: matrix.os != 'windows-latest'
run: sudo apt-get update
- name: Install Chez Scheme
if: matrix.os != 'windows-latest'
run: sudo apt-get install chezscheme
- name: Install LLVM 15
if: matrix.os != 'windows-latest'
run: sudo apt-get install llvm-15
- name: Install Valgrind
if: matrix.os != 'windows-latest'
run: sudo apt-get install valgrind
- name: Install libuv
run: sudo apt-get install libuv1-dev
- name: Set up NodeJS ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run tests
run: EFFEKT_VALGRIND=1 sbt clean test
- name: Assemble fully optimized js file
run: sbt effektJS/fullOptJS
- name: Try installing effekt binary
run: sbt install
- name: Run effekt binary
run: effekt.sh --help