Skip to content

chore:pkg origin; ci:llgo install #14

chore:pkg origin; ci:llgo install

chore:pkg origin; ci:llgo install #14

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
test:
strategy:
matrix:
os:
- macos-latest
llvm: [18]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install dependencies
if: startsWith(matrix.os, 'macos')
run: |
brew update
brew install llvm@${{matrix.llvm}} bdw-gc openssl libffi
brew link --force libffi
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH
# llcppg dependencies
brew install cjson
- name: Install LLGO
run: |
go install github.com/goplus/llgo/cmd/llgo@main
- name: Build
run: go build -v ./...
- name: Install llcppg dependencies
run: bash .github/workflows/install_llcppg_depend.sh
- name: Test
run: go test -v ./...