Skip to content

Commit 34e4fd6

Browse files
committed
ci:install goplus/llgo
1 parent 5b53386 commit 34e4fd6

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.github/actions/setup-llgo/action.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,22 @@ description: 'Setup LLGO from precompiled release'
3636
runs:
3737
using: "composite"
3838
steps:
39+
- name: Setup LLGo Dependencies
40+
uses: goplus/llgo/.github/actions/setup-deps@8959c83397617dacb18a8de54c3a738303b66141
41+
- name: Checkout LLGo Repository
42+
uses: actions/checkout@v4
43+
with:
44+
repository: goplus/llgo
45+
ref: ${{ inputs.commit-hash }}
46+
path: llgo-source
3947
- name: Setup LLGO
4048
shell: bash
4149
run: |
42-
echo "Setting up LLGO from precompiled release..."
43-
# Download precompiled LLGO
44-
wget https://github.com/luoliwoshang/llgo/releases/download/v0.0.1-clang-withemb-runtime/llgo0.0.1-clang-withemb-runtime.linux-amd64.tar.gz
45-
# Create llgo directory and extract the archive
46-
mkdir -p llgo
47-
tar -xzf llgo0.0.1-clang-withemb-runtime.linux-amd64.tar.gz -C llgo
48-
# Add llgo/bin to PATH
49-
echo "$PWD/llgo/bin" >> $GITHUB_PATH
50+
echo "Setting up LLGO from commit hash ${{ inputs.commit-hash }}..."
51+
cd llgo-source
52+
# Install LLGO from source
53+
bash ./install.sh
54+
# Set LLGO_ROOT to the source directory
55+
echo "LLGO_ROOT=$PWD" >> $GITHUB_ENV
5056
# Verify LLGO is available
51-
chmod +x llgo/bin/llgo
52-
./llgo/bin/llgo version || echo "Failed to get LLGO version"
57+
llgo version || echo "Failed to get LLGO version"

.github/workflows/validate-embed-packages.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
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_device_packages.sh device
@@ -30,6 +32,8 @@ jobs:
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

0 commit comments

Comments
 (0)