Skip to content

Reorganize testing structure #27

Reorganize testing structure

Reorganize testing structure #27

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone latest JuleC
run: |
git clone https://github.com/julelang/jule.git
- name: Get latest IR
run: |
curl -o ./jule/ir.cpp https://raw.githubusercontent.com/julelang/julec-ir/main/src/linux-amd64.cpp
- name: Compile JuleC
run: |
mkdir ./jule/bin
clang++ -O0 --std=c++17 -Wno-everything -o ./jule/bin/julec ./jule/ir.cpp
git update-index --add --chmod=-x ./jule/bin/julec
chmod +x ./jule/bin/julec
- name: JuleC Version
run: |
./jule/bin/julec version
- name: Compile Tests
run: |
./jule/bin/julec -t .
clang++ -O0 --std=c++17 -Wno-everything -o ./tests.out ./dist/ir.cpp
git update-index --add --chmod=-x ./tests.out
chmod +x ./tests.out
- name: Run Tests
run: |
./tests.out
- name: Cleanup
run: |
rm -f tests