Skip to content

Keep track of callstack (#502) #64

Keep track of callstack (#502)

Keep track of callstack (#502) #64

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Cache QBE
id: cache-qbe
uses: actions/cache@v3
with:
path: ./qbe/qbe-1.2
key: qbe-1.2
- name: Install QBE
run: |
mkdir -p qbe
cd qbe
wget https://c9x.me/compile/release/qbe-1.2.tar.xz
tar -xf qbe-1.2.tar.xz
cd qbe-1.2
make
if: steps.cache-qbe.outputs.cache-hit != 'true'
- name: Setup QBE
run: |
echo "PATH=$(pwd)/qbe/qbe-1.2:$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