-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.23 KB
/
selfhost.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
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Install QBE
run: |
git clone -b fork --single-branch https://github.com/kengorab/qbe-mirror
mv qbe-mirror qbe
cd qbe
make
- name: Setup QBE
run: |
echo "PATH=$(pwd)/qbe:$PATH" >> $GITHUB_ENV
- name: Install ext dependencies
run: ./projects/compiler/scripts/configure-libgc.sh
- name: Install abra
run: |
mkdir abra-linux
wget https://github.com/kengorab/abra-lang/releases/latest/download/abra-linux.tar.gz
tar -xzf abra-linux.tar.gz -C abra-linux
echo "PATH=$(pwd)/abra-linux:$PATH" >> $GITHUB_ENV
# echo "ABRA_HOME=`realpath $(pwd)/abra-linux/std`" >> $GITHUB_ENV
echo "ABRA_HOME=`realpath $(pwd)/projects/std/src`" >> $GITHUB_ENV
- name: Run tests
run: |
cd projects/compiler
node test/run-tests.js
- name: Run tests against compiler-next
run: |
cd projects/compiler
abra build -o compiler_next ./src/compiler.test.abra
COMPILER_BIN=./._abra/compiler_next node test/run-tests.js