Skip to content

Commit

Permalink
Fix CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Jul 15, 2021
1 parent 56b05c8 commit 2b35f87
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Cache LLVM and Clang
- name: Cache LLVM
id: cache-llvm
uses: actions/cache@v2
with:
Expand All @@ -25,15 +25,12 @@ jobs:
- name: Setup LLVM
if: steps.cache-llvm.outputs.cache-hit != 'true'
run: |
mkdir -p ../llvm
cd ../llvm
curl -fsSL https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-12.0.1.tar.gz -o llvm.tar.gz
tar -zxf llvm.tar.gz
mkdir ./llvm-project-llvmorg-12.0.1/build
cd ./llvm-project-llvmorg-12.0.1/build
cd ..
git clone https://github.com/llvm/llvm-project llvm
mkdir ./llvm/build
cd ./llvm/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS_RELEASE="-O2" -G "Unix Makefiles" ../llvm
cmake --build .
export LLVM_DIR=/home/runner/work/spice/llvm/llvm-project-llvmorg-12.0.1/build/lib/cmake/llvm
- name: Download Libs
run: |
Expand All @@ -42,9 +39,11 @@ jobs:
git clone https://github.com/google/googletest.git
git clone https://github.com/antlr/antlr4.git
- name: Build
run: |
mkdir bin
cd bin
cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DWITH_TESTS=ON ../compiler
cmake --build . --target Spice_run -- -j 6
#- name: Build
# env:
# LLVM_DIR: /home/runner/work/spice/llvm/build/lib/cmake/llvm
# run: |
# mkdir bin
# cd bin
# cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" -DWITH_TESTS=ON ../compiler
# cmake --build . --target Spice_run -- -j 6
4 changes: 2 additions & 2 deletions compiler/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ set(SOURCES
analyzer/SymbolTable.h
analyzer/SymbolTableEntry.cpp
analyzer/SymbolTableEntry.h
ir/GeneratorVisitor.cpp
ir/GeneratorVisitor.h
generator/GeneratorVisitor.cpp
generator/GeneratorVisitor.h
exception/SemanticError.cpp
exception/SemanticError.h
exception/IRError.cpp
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion compiler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "SpiceLexer.h"
#include "SpiceParser.h"
#include "analyzer/AnalyzerVisitor.h"
#include "ir/GeneratorVisitor.h"
#include "generator/GeneratorVisitor.h"

using namespace antlr4;

Expand Down

0 comments on commit 2b35f87

Please sign in to comment.