ci: compile go with go1.23, test llgo with go 1.20-1.23

This commit is contained in:
Li Jie
2025-01-08 15:36:21 +08:00
parent b299800e64
commit a64b32bf9c
4 changed files with 179 additions and 90 deletions

30
.github/workflows/fmt.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Format Check
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Check formatting
run: |
for dir in . compiler runtime; do
pushd $dir
if [ -n "$(go fmt ./...)" ]; then
echo "Some files are not properly formatted. Please run 'go fmt ./...'"
exit 1
fi
popd
done
echo "All files are properly formatted."