File tree Expand file tree Collapse file tree 6 files changed +27
-2
lines changed Expand file tree Collapse file tree 6 files changed +27
-2
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu:latest
2
+
3
+ RUN set -ex; \
4
+ export DEBIAN_FRONTEND=noninteractive; \
5
+ echo "deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" > /etc/apt/sources.list.d/github-cli.list;\
6
+ curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
7
+ apt-get update -y; \
8
+ apt-get install -y --no-install-recommends --fix-missing \
9
+ bash-completion \
10
+ python3-pip \
11
+ cmake gcc g++ ninja-build git clang-format \
12
+ gh \
13
+ ; \
14
+ rm -rf /var/lib/apt/lists/*
15
+
16
+ RUN pip install lit
17
+
18
+ SHELL ["/bin/bash" , "-xec" ]
Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ RUN set -ex; \
10
10
curl -sSL https://cli.github.com/packages/githubcli-archive-keyring.gpg > /usr/share/keyrings/githubcli-archive-keyring.gpg; \
11
11
apt-get update -y; \
12
12
apt-get install -y --no-install-recommends --fix-missing \
13
+ python3-pip \
13
14
cmake gcc g++ ninja-build git clang-format \
14
15
gh \
15
16
; \
16
17
rm -rf /var/lib/apt/lists/*
17
18
19
+ RUN pip install lit
18
20
19
21
USER runner
20
22
WORKDIR $HOME
Original file line number Diff line number Diff line change 3
3
REGISTRY=localhost:5000
4
4
TAG=graph-compiler-runner:latest
5
5
6
+ kubectl -n docker-registry port-forward svc/docker-registry 5000:5000 &
7
+
6
8
cd $( dirname " $0 " )
7
9
docker build . --tag $REGISTRY /$TAG
8
10
docker push $REGISTRY /$TAG
Original file line number Diff line number Diff line change 28
28
cmake -G Ninja llvm -B build -DCMAKE_INSTALL_PREFIX=llvm-install \
29
29
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=true -DLLVM_ENABLE_PROJECTS="mlir" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INSTALL_UTILS=true -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
30
30
cmake --build build --target install
31
- cp llvm/bin/llvm-lit llvm-install/bin
32
31
cd llvm-install
33
32
tar -zcf ../llvm.tgz .
34
33
Original file line number Diff line number Diff line change 24
24
- name : Build
25
25
run : |
26
26
scripts/compile.sh
27
+
28
+ - name : Test
29
+ run : |
30
+ cmake --build build --target gc-check
Original file line number Diff line number Diff line change @@ -24,5 +24,5 @@ test -f "$llvm_dir/llvm-$llvm_hash"/llvm.tgz || get_llvm
24
24
cmake -S . -G Ninja -B build \
25
25
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
26
26
-DMLIR_DIR=$llvm_dir /lib/cmake/mlir \
27
- -DLLVM_EXTERNAL_LIT=$llvm_dir /bin/llvm- lit
27
+ -DLLVM_EXTERNAL_LIT=$( which lit)
28
28
cmake --build build --parallel $( nproc)
You can’t perform that action at this time.
0 commit comments