Skip to content

Commit

Permalink
Add libraries support in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
roblabla committed Sep 23, 2023
1 parent 3cd7fa1 commit f137333
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,19 @@ jobs:
mkdir -p sandbox && chmod 777 sandbox
mkdir -p local_files && chmod 777 local_files
mkdir -p compilers && chmod 777 compilers
mkdir -p compilers && chmod 777 libraries
container_id=$(docker run \
--detach \
-v $(pwd):/decomp.me \
-v $(pwd)/local_files:/local_files \
-v $(pwd)/compilers:/compilers \
-v $(pwd)/libraries:/libraries \
--device /dev/fuse \
--security-opt apparmor=unconfined \
--security-opt seccomp=unconfined \
--entrypoint /bin/bash \
-e COMPILER_BASE_PATH=/compilers \
-e LIBRARY_BASE_PATH=/libraries \
-e WINEPREFIX=/tmp/wine \
-e LOCAL_FILE_DIR=/local_files \
-e USE_SANDBOX_JAIL=on \
Expand All @@ -194,7 +197,7 @@ jobs:
docker exec ${container_id} /bin/bash -c 'cd /decomp.me/backend && \
poetry install && \
poetry run compilers/download.py --compilers-dir ${COMPILER_BASE_PATH} --podman && \
poetry run compilers/download.py --compilers-dir ${COMPILER_BASE_PATH} --libraries-dir ${LIBRARY_BASE_PATH} --podman && \
poetry run python manage.py test'
frontend_lint:
Expand Down

0 comments on commit f137333

Please sign in to comment.