File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change 11name : " Setup LLGO"
2- description : " Setup LLGO from precompiled release"
2+ description : " Checkout and build LLGO from specific commit hash"
3+ inputs :
4+ commit-hash :
5+ description : " Commit hash to checkout"
6+ required : true
7+ platform :
8+ description : " Platform to download for"
9+ required : false
10+ default : " linux-amd64"
311runs :
412 using : " composite"
513 steps :
14+ - name : Setup LLGo Dependencies
15+ uses : goplus/llgo/.github/actions/setup-deps@8959c83397617dacb18a8de54c3a738303b66141
16+ - name : Checkout LLGo Repository
17+ uses : actions/checkout@v4
18+ with :
19+ repository : goplus/llgo
20+ ref : ${{ inputs.commit-hash }}
21+ path : llgo-source
622 - name : Setup LLGO
723 shell : bash
824 run : |
9- echo "Setting up LLGO from precompiled release..."
10- # Download precompiled LLGO
11- wget https://github.com/luoliwoshang/llgo/releases/download/v0.0.1-clang-withemb-runtime/llgo0.0.1-clang-withemb-runtime.linux-amd64.tar.gz
12- # Create llgo directory and extract the archive
13- mkdir -p llgo
14- tar -xzf llgo0.0.1-clang-withemb-runtime.linux-amd64.tar.gz -C llgo
15- # Add llgo/bin to PATH
16- echo "$PWD/llgo/bin" >> $GITHUB_PATH
25+ echo "Setting up LLGO from commit hash ${{ inputs.commit-hash }}..."
26+ cd llgo-source
27+ # Install LLGO from source
28+ bash ./install.sh
29+ # Set LLGO_ROOT to the source directory
30+ echo "LLGO_ROOT=$PWD" >> $GITHUB_ENV
1731 # Verify LLGO is available
18- chmod +x llgo/bin/llgo
19- ./llgo/bin/llgo version || echo "Failed to get LLGO version"
32+ llgo version || echo "Failed to get LLGO version"
Original file line number Diff line number Diff line change 1616 go-version : " 1.21"
1717 - name : Setup LLGO
1818 uses : ./.github/actions/setup-llgo
19+ with :
20+ commit-hash : 8959c83397617dacb18a8de54c3a738303b66141
1921 - name : Run Device Package Validation
2022 run : |
2123 ./.github/scripts/validate_embed_packages.sh device
3032 go-version : " 1.21"
3133 - name : Setup LLGO
3234 uses : ./.github/actions/setup-llgo
35+ with :
36+ commit-hash : 8959c83397617dacb18a8de54c3a738303b66141
3337 - name : Run Machine Package Validation
3438 run : |
3539 ./.github/scripts/validate_embed_packages.sh machine
You can’t perform that action at this time.
0 commit comments