From d6c052dbcaf514fc86a9479da5107929a52fbd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ch=C3=A1bek?= Date: Thu, 12 Sep 2024 17:09:23 +0200 Subject: [PATCH] tmp --- .github/workflows/ci.yaml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0dda4be..bf9af73 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 @@ -38,16 +38,25 @@ jobs: runs-on: ubuntu-latest strategy: matrix: + distro: [ bookworm ] 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: ubuntu22.04 + arch: riscv64 + go: '1.21.13' + - distro: ubuntu22.04 + arch: riscv64 + 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 }') @@ -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 @@ -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