Skip to content

Commit

Permalink
das-node-55: use bind volume for bazel cache
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Oct 31, 2024
1 parent 7187c44 commit 6b9be92
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
path: |
build
bazel_assets
docker/volumes/bazel_cache
key: ${{ runner.os }}-cpp-build-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('**/*.cpp') }}
restore-keys: |
${{ runner.os }}-cpp-build-${{ hashFiles('**/CMakeLists.txt') }}
Expand Down Expand Up @@ -135,7 +136,7 @@ jobs:
${{ runner.os }}-cpp-build
- name: Download wheeler artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: wheelers
path: dist
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
docker/volumes/

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ test-all: test-cpp test-python

# Clean docker volumes and build directories
clean:
@docker volume rm bazel_cache
@rm -rf src/bazel-* bazel_assets build dist
@rm -rf src/bazel-* bazel_assets build dist docker/volmes/bazel_cache
2 changes: 1 addition & 1 deletion scripts/cpp_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CONTAINER_NAME="das-node-build"
docker run \
--rm \
--name=$CONTAINER_NAME \
--mount type=volume,source=bazel_cache,target=/root/.cache/bazel \
--volume ./docker/volumes/bazel_cache:/root/.cache/bazel \
--volume .:/opt/hyperon_das_node \
--workdir /opt/hyperon_das_node/src \
das-node-builder \
Expand Down
2 changes: 1 addition & 1 deletion scripts/cpp_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CONTAINER_NAME="das-node-cpp-test"
docker run \
--rm \
--name=$CONTAINER_NAME \
--mount type=volume,source=bazel_cache,target=/root/.cache/bazel \
--volume ./docker/volumes/bazel_cache:/root/.cache/bazel \
--volume .:/opt/hyperon_das_node \
--workdir /opt/hyperon_das_node/src \
das-node-builder \
Expand Down
2 changes: 1 addition & 1 deletion scripts/wheeler_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CONTAINER_NAME="das-node-wheeler-test"
docker run \
--rm \
--name=$CONTAINER_NAME \
--mount type=volume,source=bazel_cache,target=/root/.cache/bazel \
--volume ./docker/volumes/bazel_cache:/root/.cache/bazel \
--volume .:/opt/hyperon_das_node \
--workdir /opt/hyperon_das_node \
das-node-builder \
Expand Down

0 comments on commit 6b9be92

Please sign in to comment.