From 157d14c6d03ba52571760b77400e68e21dbd98bc Mon Sep 17 00:00:00 2001 From: gxz Date: Tue, 28 Nov 2023 15:41:40 +0800 Subject: [PATCH] chore: ci --- .github/workflows/generate-code.yml | 2 +- scripts/terra/package.json | 1 - scripts/terra/terra-binding.sh | 2 +- scripts/terra/terra-types.sh | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-code.yml b/.github/workflows/generate-code.yml index 4011780..a9fe8b1 100644 --- a/.github/workflows/generate-code.yml +++ b/.github/workflows/generate-code.yml @@ -3,7 +3,7 @@ on: workflow_dispatch: jobs: - build: + generate-codes: runs-on: ubuntu-latest env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/scripts/terra/package.json b/scripts/terra/package.json index e134606..31774ad 100644 --- a/scripts/terra/package.json +++ b/scripts/terra/package.json @@ -7,7 +7,6 @@ "node": ">=18" }, "scripts": { - "build": "terra", "terra": "yarn terra-types && yarn terra-binding", "terra-types": "sh terra-types.sh", "terra-binding": "sh terra-binding.sh" diff --git a/scripts/terra/terra-binding.sh b/scripts/terra/terra-binding.sh index 68272ad..b91e4be 100644 --- a/scripts/terra/terra-binding.sh +++ b/scripts/terra/terra-binding.sh @@ -10,7 +10,7 @@ find ${OUTPUT_DIR}/test/binding -type f -delete -npm run build -- run \ +npm exec terra -- run \ --config ${MY_PATH}/config/binding_configs.yaml \ --output-dir=${OUTPUT_DIR} \ diff --git a/scripts/terra/terra-types.sh b/scripts/terra/terra-types.sh index 9763146..8c3db4c 100644 --- a/scripts/terra/terra-types.sh +++ b/scripts/terra/terra-types.sh @@ -1,14 +1,14 @@ #!/usr/bin/env bash set -e set -x - +export LLVM_DOWNLOAD_URL=https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.6/clang+llvm-15.0.6-x86_64-linux-gnu-ubuntu-18.04.tar.xz MY_PATH=$(realpath $(dirname "$0")) OUTPUT_DIR=$(realpath ${MY_PATH}/../../packages/@iris/rtc/generate) find ${OUTPUT_DIR} -type f -delete # packages/@iris/rtc/generate -npm run build -- run \ +npm exec terra -- run \ --config ${MY_PATH}/config/types_configs.yaml \ --output-dir=${OUTPUT_DIR} \