Skip to content

Commit 5f24567

Browse files
committed
fix(ci): setup libclang and reorder FFmpeg library download
- Install libclang and LLVM 18 dependencies needed for generator - Move FFmpeg libraries download step before build verification - Set required environment variables for CGO compilation - Remove redundant FFmpeg download before test execution
1 parent 7b44018 commit 5f24567

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/go-release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,22 @@ jobs:
3636
go-version: '1.24'
3737
cache: true
3838

39+
- name: Install libclang for generator
40+
run: |
41+
sudo apt-get update
42+
sudo apt-get install -y libclang-18-dev llvm-18-dev
43+
echo "CGO_LDFLAGS=-L/usr/lib/llvm-18/lib" >> $GITHUB_ENV
44+
echo "CGO_CFLAGS=-I/usr/lib/llvm-18/include" >> $GITHUB_ENV
45+
echo "LD_LIBRARY_PATH=/usr/lib/llvm-18/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
46+
47+
- name: Download FFmpeg libraries
48+
run: go run ./cmd/download-lib/
49+
3950
- name: Verify module builds
4051
run: go build -v ./...
4152

4253
- name: Run tests
43-
run: |
44-
go run ./cmd/download-lib/
45-
go test -v ./...
54+
run: go test -v ./...
4655

4756
- name: Create tag (workflow_dispatch only)
4857
if: github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)