Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
grongor committed Sep 12, 2024
1 parent b0b0332 commit ff96be5
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
go: ['~1.19.0', '^1.23']
go: [ '~1.19.0', '^1.23' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand All @@ -39,15 +39,24 @@ jobs:
strategy:
matrix:
arch: [ armv6, armv7, aarch64 ]
go: ['1.19.13', 'latest']
# go: [ '1.19.13', 'latest' ]
go: [ '1.19.13', '1.22.6' ] # https://github.com/golang/go/issues/68976
include:
- distro: bookworm
- arch: riscv64
distro: ubuntu22.04
go: '1.21.13'
- arch: riscv64
distro: ubuntu22.04
go: '1.22.6'

steps:
- uses: actions/checkout@v4
- uses: uraimo/run-on-arch-action@v2
id: runcmd
with:
distro: ${{ matrix.distro }}
arch: ${{ matrix.arch }}
distro: alpine_latest
install: apk add --no-cache make
install: apt update && apt install -y build-essential wget
run: |
if [ ${{ matrix.go }} = latest ]; then
go=$(wget -O- 'https://go.dev/dl/?mode=json' | grep -m1 version | awk -F'"' '{ print $4 }')
Expand All @@ -56,6 +65,7 @@ jobs:
fi
case ${{ matrix.arch }} in
riscv64) filename=${go}.linux-riscv64.tar.gz ;;
arm*) filename=${go}.linux-armv6l.tar.gz ;;
*) filename=${go}.linux-arm64.tar.gz ;;
esac
Expand All @@ -64,7 +74,8 @@ jobs:
tar -C /usr/local -xzf $filename
export PATH=$PATH:/usr/local/go/bin
make test
go build cmd/test/test.go
go test --timeout 5m --count 1 ./...
lint:
name: Lint
Expand Down

0 comments on commit ff96be5

Please sign in to comment.