From 85ea8c94fbda4162564628768f9f67daa8a43b81 Mon Sep 17 00:00:00 2001 From: Littlegnal <8847263+littleGnAl@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:35:31 +0800 Subject: [PATCH] [ci][code-gen.yaml] Fix run failed (#1625) Need more configurations to make it work. --- .github/workflows/code-gen.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-gen.yaml b/.github/workflows/code-gen.yaml index 80efeefeb..e8858f1fc 100644 --- a/.github/workflows/code-gen.yaml +++ b/.github/workflows/code-gen.yaml @@ -23,9 +23,20 @@ jobs: with: ref: ${{ inputs.target_branch }} fetch-depth: 0 - - uses: actions/setup-node@v4 + - name: enable corepack + run: corepack enable + - name: set node + uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 'lts/*' + - name: Reconfigure git to use HTTP authentication + run: | + git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf ssh://git@github.com/ + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v1 + with: + version: "15.0.6" # Need ping version to 15.x + directory: ${{ runner.temp }}/llvm - uses: subosito/flutter-action@v2 with: channel: 'stable'