fix(ci): download El SDK from release assets instead of cloning repo
This commit is contained in:
+10
-21
@@ -34,17 +34,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Clone el (provides elc compiler)
|
- name: Set up El SDK from release
|
||||||
env:
|
env:
|
||||||
CHECKOUT_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
|
CHECKOUT_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
DEST="${{ github.workspace }}/../foundation-el"
|
EL_HOME="${{ github.workspace }}/../foundation-el"
|
||||||
rm -rf "$DEST"
|
mkdir -p "$EL_HOME/dist/platform" "$EL_HOME/el-compiler/runtime"
|
||||||
git clone --depth 1 \
|
BASE_URL="https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1"
|
||||||
"https://will:${CHECKOUT_TOKEN}@git.neuralplatform.ai/neuron-technologies/el.git" \
|
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/dist/platform/elc" "$BASE_URL/elc-linux-amd64"
|
||||||
"$DEST"
|
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/el-compiler/runtime/el_runtime.c" "$BASE_URL/el_runtime.c"
|
||||||
echo "EL_HOME=$DEST" >> "$GITHUB_ENV"
|
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/el-compiler/runtime/el_runtime.h" "$BASE_URL/el_runtime.h"
|
||||||
|
chmod +x "$EL_HOME/dist/platform/elc"
|
||||||
|
echo "EL_HOME=$EL_HOME" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Authenticate to GCP
|
- name: Authenticate to GCP
|
||||||
uses: google-github-actions/auth@v2
|
uses: google-github-actions/auth@v2
|
||||||
@@ -59,20 +61,6 @@ jobs:
|
|||||||
- name: Configure docker auth for Artifact Registry
|
- name: Configure docker auth for Artifact Registry
|
||||||
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
|
||||||
|
|
||||||
- name: Get elc (pre-built linux/amd64 from El repo)
|
|
||||||
run: |
|
|
||||||
set -euo pipefail
|
|
||||||
mkdir -p "$EL_HOME/dist/platform"
|
|
||||||
ELC_SRC="$EL_HOME/dist/platform/elc-linux-amd64"
|
|
||||||
if [ -f "$ELC_SRC" ]; then
|
|
||||||
cp "$ELC_SRC" "$EL_HOME/dist/platform/elc"
|
|
||||||
chmod +x "$EL_HOME/dist/platform/elc"
|
|
||||||
else
|
|
||||||
curl -fL -o "$EL_HOME/dist/platform/elc" \
|
|
||||||
https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1/elc-linux-amd64
|
|
||||||
chmod +x "$EL_HOME/dist/platform/elc"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Compute image tag
|
- name: Compute image tag
|
||||||
id: tag
|
id: tag
|
||||||
run: echo "tag=dev-${GITHUB_SHA:0:8}" >> "$GITHUB_OUTPUT"
|
run: echo "tag=dev-${GITHUB_SHA:0:8}" >> "$GITHUB_OUTPUT"
|
||||||
@@ -116,3 +104,4 @@ jobs:
|
|||||||
docker stop dev-smoke && docker rm dev-smoke || true
|
docker stop dev-smoke && docker rm dev-smoke || true
|
||||||
echo "Dev smoke test FAILED"
|
echo "Dev smoke test FAILED"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user