Skip to content

Commit

Permalink
move ci_build and ci_cache out of workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlz committed Sep 5, 2023
1 parent f9ff481 commit 42168e2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
klippy:
- 'klippy/**'
- 'test/**'
- 'scripts/**'
klipper:
- 'src/**'
- 'lib/**'
Expand Down
2 changes: 1 addition & 1 deletion scripts/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ WORKDIR /klipper

RUN ./scripts/ci-install.sh
RUN ./scripts/ci-build.sh
ENV PATH="/klipper/ci_build/python-env/bin:$PATH"
ENV PATH="/ci_build/python-env/bin:$PATH"
RUN pip install -r ./scripts/requirements_dev.txt
2 changes: 1 addition & 1 deletion scripts/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eu

# Paths to tools installed by ci-install.sh
MAIN_DIR=${PWD}
BUILD_DIR=${PWD}/ci_build
BUILD_DIR=/ci_build
export PATH=${BUILD_DIR}/pru-gcc/bin:${PATH}
export PATH=${BUILD_DIR}/or1k-linux-musl-cross/bin:${PATH}
PYTHON=${BUILD_DIR}/python-env/bin/python
Expand Down
4 changes: 2 additions & 2 deletions scripts/ci-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
set -eux

MAIN_DIR=${PWD}
BUILD_DIR=${PWD}/ci_build
CACHE_DIR=${PWD}/ci_cache
BUILD_DIR=/ci_build
CACHE_DIR=/ci_cache
mkdir -p ${BUILD_DIR} ${CACHE_DIR}


Expand Down

0 comments on commit 42168e2

Please sign in to comment.