Skip to content

Specify const types to support 32-bit arch #34

Specify const types to support 32-bit arch

Specify const types to support 32-bit arch #34

Workflow file for this run

name: go
on:
push:
branches: ['*']
tags: ['v*']
pull_request:
branches: ['*']
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.22']
dir: ['pkg', 'cmd/zstdseek']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: go.sum
- name: Display Go version
run: go version
- name: Install dependencies (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: |
go get .
- name: Build (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: |
for OSARCH in $(go tool dist list); do
IFS="/" read -r OS ARCH <<< "$OSARCH"
echo "Building for $OS $ARCH"
GOOS=$OS GOARCH=$ARCH go build ./...
done
- name: Test (${{ matrix.dir }})
working-directory: ./${{ matrix.dir }}
run: go test -v ./...