ci: clone El repo for native HTML template support
v1.2.1 elc (282KB) cannot compile native HTML template syntax introduced in feat/native-el-templates. Clone El repo depth=1 to get the latest elc (486KB) that supports it. Set EL_HOME to lang/ subdir.
This commit is contained in:
+10
-11
@@ -34,20 +34,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
|
||||||
- name: Set up El SDK from release
|
- name: Set up El SDK from source
|
||||||
env:
|
env:
|
||||||
CHECKOUT_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
|
CHECKOUT_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
EL_HOME="${{ github.workspace }}/../foundation-el"
|
DEST="${{ github.workspace }}/../foundation-el"
|
||||||
mkdir -p "$EL_HOME/dist/platform" "$EL_HOME/el-compiler/runtime"
|
# Clone El repo — native HTML template syntax requires latest elc,
|
||||||
BASE_URL="https://git.neuralplatform.ai/neuron-technologies/el/releases/download/v1.2.1"
|
# not the v1.2.1 release binary (282KB vs 486KB, different feature set).
|
||||||
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/dist/platform/elc" "$BASE_URL/elc-linux-amd64"
|
git -c "http.extraheader=Authorization: token ${CHECKOUT_TOKEN}" clone \
|
||||||
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/el-compiler/runtime/el_runtime.c" "$BASE_URL/el_runtime.c"
|
--depth=1 \
|
||||||
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/el-compiler/runtime/el_runtime.h" "$BASE_URL/el_runtime.h"
|
"https://git.neuralplatform.ai/neuron-technologies/el.git" \
|
||||||
curl -fL -H "Authorization: token ${CHECKOUT_TOKEN}" -o "$EL_HOME/el-compiler/runtime/el_runtime.js" "$BASE_URL/el_runtime.js"
|
"$DEST"
|
||||||
chmod +x "$EL_HOME/dist/platform/elc"
|
chmod +x "$DEST/lang/dist/platform/elc"
|
||||||
echo "EL_HOME=$EL_HOME" >> "$GITHUB_ENV"
|
echo "EL_HOME=$DEST/lang" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Authenticate to GCP
|
- name: Authenticate to GCP
|
||||||
uses: google-github-actions/auth@v2
|
uses: google-github-actions/auth@v2
|
||||||
@@ -105,4 +105,3 @@ 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