Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Jul 3, 2024
1 parent ae4a542 commit a1e3e47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/do-build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

set -xe

CUDA_PIN=$1
CUDA_DEB=$2
CUDA_TOOLKIT=$3
Expand Down Expand Up @@ -48,7 +50,7 @@ export PATH="/usr/local/cuda/bin:${PATH}"

mkdir -p ./cache/otp
curl -fSL "https://github.com/cocoa-xu/otp-build/releases/download/v${OTP_VERSION}/otp-${TRIPLET}.tar.gz" -o "./cache/otp/otp-v${OTP_VERSION}-${TRIPLET}.tar.gz"
export ROOT_DIR=$(pwd)
export ROOT_DIR="$(pwd)"
cd ./cache/otp
tar -xzf "otp-v${OTP_VERSION}-${TRIPLET}.tar.gz"
cd "${ROOT_DIR}"
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/script-to-build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ GITHUB_REF=$11
IMAGE_NAME="ubuntu:20.04"

sudo docker run --privileged --network=host --rm -v $(pwd):/work "${IMAGE_NAME}" \
sh -c "chmod a+x /work/do-build.sh && /work/do-build.sh ${CUDA_PIN} ${CUDA_DEB} ${CUDA_TOOLKIT} ${CUDA_ID} ${CUDNN_DEB} ${CUDNN_PACKAGE} ${CUDNN_ID} ${OTP_VERSION} ${ELIXIR_VERSION} ${TRIPLET} ${GITHUB_REF}"
sh -c "chmod a+x /work/do-build.sh && /work/do-build.sh '${CUDA_PIN}' '${CUDA_DEB}' '${CUDA_TOOLKIT}' '${CUDA_ID}' '${CUDNN_DEB}' '${CUDNN_PACKAGE}' '${CUDNN_ID}' '${OTP_VERSION}' '${ELIXIR_VERSION}' '${TRIPLET}' '${GITHUB_REF}'"
sudo chown -R $(id -u):$(id -g) .
sudo chmod a+rw -R ./artifacts

0 comments on commit a1e3e47

Please sign in to comment.