-
Notifications
You must be signed in to change notification settings - Fork 24
58 lines (46 loc) · 1.43 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
name: Continuous Integration
on: [push, pull_request]
jobs:
build-jar:
strategy:
matrix:
os: [ubuntu-latest]
name: Build Effekt compiler and run tests
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install MLton
run: |
curl -L https://github.com/MLton/mlton/releases/download/on-20210117-release/mlton-20210117-1.amd64-linux-glibc2.31.tgz --output mlton.tgz
tar -xzf mlton.tgz
mv mlton-20210117-1.amd64-linux-glibc2.31 $GITHUB_WORKSPACE/mlton
chmod +x $GITHUB_WORKSPACE/mlton/bin/mlton
echo "Trying to call directly"
$GITHUB_WORKSPACE/mlton/bin/mlton
echo "Adding mlton to path"
echo "$GITHUB_WORKSPACE/mlton/bin" >> $GITHUB_PATH
- name: Install Chez Scheme
run: sudo apt-get install chezscheme
- name: Install LLVM 15
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 15
- name: Set up NodeJS
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Run tests
run: 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