Skip to content

Commit

Permalink
chore: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guoxianzhe committed Nov 28, 2023
1 parent 9dc8c02 commit 157d14c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:

jobs:
build:
generate-codes:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion scripts/terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/terra/terra-binding.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \

Expand Down
4 changes: 2 additions & 2 deletions scripts/terra/terra-types.sh
Original file line number Diff line number Diff line change
@@ -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} \

Expand Down

0 comments on commit 157d14c

Please sign in to comment.