diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1c1abb91..e373b9d2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -14,7 +14,7 @@ jobs: test: strategy: matrix: - os: [macos-latest, ubuntu-latest] + os: [macos-latest, ubuntu-24.04] # os: [macos-latest] llvm: [18] runs-on: ${{ matrix.os }} @@ -36,15 +36,16 @@ jobs: echo "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-${{ matrix.llvm }} main" | sudo tee /etc/apt/sources.list.d/llvm.list wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update - sudo apt-get install -y llvm-${{ matrix.llvm }}-dev clang-${{ matrix.llvm }} lld-${{ matrix.llvm }} pkg-config libgc-dev libcjson-dev libsqlite3-dev python3.11-dev + sudo apt-get install -y llvm-${{ matrix.llvm }}-dev clang-${{ matrix.llvm }} lld-${{ matrix.llvm }} pkg-config libgc-dev libcjson-dev libsqlite3-dev python3.12-dev + echo /usr/lib/llvm-${{ matrix.llvm }}/bin >> $GITHUB_PATH - + - name: Clang information run: | echo $PATH which clang clang --version - + - name: Set up Go uses: actions/setup-go@v5 with: @@ -63,19 +64,19 @@ jobs: - name: Install run: go install ./... - + - name: LLGO tests if: matrix.os != 'ubuntu-latest' run: | echo "Test result on ${{ matrix.os }} with LLVM ${{ matrix.llvm }}" > result.md LLGOROOT=$PWD bash .github/workflows/test_llgo.sh - + - name: Test _demo and _pydemo run: | set +e LLGOROOT=$PWD bash .github/workflows/test_demo.sh exit 0 - + - name: Show test result run: cat result.md diff --git a/README.md b/README.md index 50338c10..2f03e518 100644 --- a/README.md +++ b/README.md @@ -302,7 +302,7 @@ Here are the Go packages that can be imported correctly: - [bdwgc/libgc 8.0+](https://www.hboehm.info/gc/) - [cJSON 1.7+](https://github.com/DaveGamble/cJSON) (optional, for [github.com/goplus/llgo/c/cjson](https://pkg.go.dev/github.com/goplus/llgo/c/cjson)) - [SQLite 3](https://www.sqlite.org) (optional, for [github.com/goplus/llgo/c/sqlite](https://pkg.go.dev/github.com/goplus/llgo/c/sqlite)) -- [Python 3.11+](https://www.python.org) (optional, for [github.com/goplus/llgo/py](https://pkg.go.dev/github.com/goplus/llgo/py)) +- [Python 3.12+](https://www.python.org) (optional, for [github.com/goplus/llgo/py](https://pkg.go.dev/github.com/goplus/llgo/py)) ## How to install