-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a37c25c
commit b9548e4
Showing
4 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: "Fusion-Env" | ||
description: "environment for fusion" | ||
author: "Jack Parsons" | ||
runs: | ||
using: "docker" | ||
image: "jackpar/fusion:latest" | ||
entrypoint: ["/bin/bash", "-c"] | ||
args: | ||
- | | ||
apk add --no-cache bash && \ | ||
cp -r $GITHUB_WORKSPACE /workspace && \ | ||
cd /workspace && \ | ||
./entrypoint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
my-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run my Docker Hub Action | ||
uses: ./ # use local action |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! /bin/bash | ||
|
||
mkdir build | ||
cd build | ||
cmake .. | ||
make | ||
|
||
cd ../tests | ||
tester ./tester_config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
FROM ubuntu:latest | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install build-essential -y | ||
|
||
RUN apt-get update -y | ||
RUN apt-get install pkg-config -y | ||
|
||
RUN apt-get update | ||
RUN apt-get install uuid-dev -y | ||
|
||
RUN apt-get update | ||
RUN apt-get install openjdk-21-jre -y | ||
|
||
RUN apt-get update | ||
RUN apt-get install git -y | ||
|
||
RUN apt-get update | ||
RUN apt-get install cmake -y | ||
|
||
RUN apt-get update | ||
RUN apt-get install ninja-build -y | ||
|
||
RUN mkdir /antlr | ||
RUN cd /antlr && git clone https://github.com/antlr/antlr4.git | ||
RUN cd /antlr/antlr4 && git checkout 4.13.1 | ||
|
||
RUN mkdir /antlr/antlr4/build | ||
RUN mkdir /antlr/install | ||
RUN cd /antlr/antlr4/build && cmake /antlr/antlr4/runtime/Cpp/ \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
-DCMAKE_INSTALL_PREFIX="/antlr/install" && make install | ||
|
||
|
||
RUN apt-get update | ||
RUN apt-get install curl -y | ||
|
||
RUN mkdir /antlr/install/bin | ||
RUN curl https://www.antlr.org/download/antlr-4.13.1-complete.jar \ | ||
-o /antlr/install/bin/antlr.jar | ||
|
||
RUN cd / && git clone https://github.com/llvm/llvm-project.git | ||
RUN cd /llvm-project && git checkout llvmorg-16.0.6 | ||
RUN mkdir /llvm-project/build | ||
RUN cd /llvm-project/build && cmake -G Ninja ../llvm \ | ||
-DLLVM_ENABLE_PROJECTS=mlir \ | ||
-DLLVM_BUILD_EXAMPLES=ON \ | ||
-DLLVM_TARGETS_TO_BUILD="Native" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DLLVM_ENABLE_ASSERTIONS=ON | ||
|
||
RUN cd /llvm-project/build && ninja check-all -j 16 || true | ||
|
||
RUN echo "export ANTLR_INS=\"/antlr/install\"" >> ~/.bashrc | ||
RUN echo "export ANTLR_JAR=\"/antlr/install/bin/antlr.jar\"" >> ~/.bashrc | ||
RUN echo "export CLASSPATH=\"$ANTLR_JAR:$CLASSPATH\"" >> ~/.bashrc | ||
RUN echo "alias antlr4=\"java -Xmx500M org.antlr.v4.Tool\"" >> ~/.bashrc | ||
RUN echo "alias grun='java org.antlr.v4.gui.TestRig'" >> ~/.bashrc | ||
|
||
RUN echo "export MLIR_INS=\"/llvm-project/build/\"" >> ~/.bashrc | ||
RUN echo "export MLIR_DIR=\"/llvm-project/build/lib/cmake/mlir/\"" >> ~/.bashrc | ||
RUN echo "export PATH=\"/llvm-project/build/bin:$PATH\"" >> ~/.bashrc | ||
|
||
RUN cd / && git clone https://github.com/cmput415/Tester.git | ||
RUN mkdir /Tester/build | ||
RUN cd /Tester/build && cmake .. && make | ||
|
||
RUN echo "export PATH=\"/Tester/bin/:$PATH\"" >> ~/.bashrc |