Merge pull request #601 from aofei/python3.12

installation: require Python 3.12
This commit is contained in:
xushiwei
2024-07-29 15:22:34 +08:00
committed by GitHub
2 changed files with 9 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ jobs:
test: test:
strategy: strategy:
matrix: matrix:
os: [macos-latest, ubuntu-latest] os: [macos-latest, ubuntu-24.04]
# os: [macos-latest] # os: [macos-latest]
llvm: [18] llvm: [18]
runs-on: ${{ matrix.os }} 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 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 - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update 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 echo /usr/lib/llvm-${{ matrix.llvm }}/bin >> $GITHUB_PATH
- name: Clang information - name: Clang information
run: | run: |
echo $PATH echo $PATH
which clang which clang
clang --version clang --version
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
@@ -63,19 +64,19 @@ jobs:
- name: Install - name: Install
run: go install ./... run: go install ./...
- name: LLGO tests - name: LLGO tests
if: matrix.os != 'ubuntu-latest' if: matrix.os != 'ubuntu-latest'
run: | run: |
echo "Test result on ${{ matrix.os }} with LLVM ${{ matrix.llvm }}" > result.md echo "Test result on ${{ matrix.os }} with LLVM ${{ matrix.llvm }}" > result.md
LLGOROOT=$PWD bash .github/workflows/test_llgo.sh LLGOROOT=$PWD bash .github/workflows/test_llgo.sh
- name: Test _demo and _pydemo - name: Test _demo and _pydemo
run: | run: |
set +e set +e
LLGOROOT=$PWD bash .github/workflows/test_demo.sh LLGOROOT=$PWD bash .github/workflows/test_demo.sh
exit 0 exit 0
- name: Show test result - name: Show test result
run: cat result.md run: cat result.md

View File

@@ -302,7 +302,7 @@ Here are the Go packages that can be imported correctly:
- [bdwgc/libgc 8.0+](https://www.hboehm.info/gc/) - [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)) - [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)) - [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 ## How to install