Skip to content

Commit

Permalink
CI: fix & speedup build
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 8, 2024
1 parent 19d7842 commit 3be32af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
type: [gpu, cpu]
steps:
- uses: actions/checkout@v3
- run: sudo .github/workflows/install_docker.sh
- run: sudo .github/workflows/GHA_increase_disk_space.sh
- name: cache
uses: actions/cache@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions docker/compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ DCC_GPU="docker compose -f docker-compose.yml -f docker/docker-compose.gpu.yml"
pushd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
git submodule update --init --recursive

echo build base stack
for image in foundation base minimal scipy; do
test $build_cpu = 1 && $DCC_CPU build "$@" $image
test $build_gpu = 1 && $DCC_GPU build "$@" $image
done

echo build ccache
test $build_cpu = 1 && $DCC_CPU build "$@" sirf-build
test $build_gpu = 1 && $DCC_GPU build "$@" sirf-build
Expand Down

0 comments on commit 3be32af

Please sign in to comment.