Skip to content

Commit 9bb24ad

Browse files
committed
don't run tests in docker build, but separately in CI instead.
1 parent 2b481aa commit 9bb24ad

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ on:
55
jobs:
66
build-and-test:
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
llvm_versions: [14, 15]
811
steps:
912
- uses: actions/checkout@v4
1013
- run: git submodule update --init --recursive subprojects/symcc-rt
11-
# build and test with default LLVM version 15
12-
- run: docker build -t symqemu .
13-
# LLVM version 14
14-
- run: docker build --build-arg LLVM_VERSION=14 -t symqemu .
14+
# build and test with multiple LLVM versions
15+
- run: docker build --build-arg LLVM_VERSION=${{ matrix.llvm_versions }} -t symqemu .
16+
- run: docker run -t symqemu make -C build check
17+
- run: docker run -t symqemu sh -c "cd tests/symqemu && python3 -m unittest test.py"

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ RUN mkdir build && cd build && /configure_symqemu.sh
6868

6969
RUN cd build && make -j
7070

71-
RUN cd build && make check
72-
73-
WORKDIR /symqemu_source/tests/symqemu
74-
RUN python3 -m unittest test.py
71+
# RUN cd build && make check
72+
# WORKDIR /symqemu_source/tests/symqemu
73+
# RUN python3 -m unittest test.py

0 commit comments

Comments
 (0)