Skip to content

[v24.1.x ] Manual backports: Mac build fix & go deps bump #31473

[v24.1.x ] Manual backports: Mac build fix & go deps bump

[v24.1.x ] Manual backports: Mac build fix & go deps bump #31473

Workflow file for this run

---
# Copyright 2020 Redpanda Data, Inc.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.md
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0
name: rpk
on:
push:
branches: [dev]
paths:
- 'src/go/rpk/**'
- '.github/workflows/rpk-build.yml'
pull_request:
paths:
- 'src/go/rpk/**'
- '.github/workflows/rpk-build.yml'
jobs:
build:
strategy:
matrix:
goos: [linux, darwin, windows]
goarch: [amd64, arm64]
exclude:
- goos: linux
goarch: amd64
- goos: darwin
goarch: arm64
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache-dependency-path: 'src/go/rpk/go.sum'
- run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o rpk cmd/rpk/main.go
working-directory: src/go/rpk/
test:
strategy:
matrix:
runner: [ubuntu-24.04, macos-15]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
cache-dependency-path: 'src/go/rpk/go.sum'
- run: go run gotest.tools/[email protected] -- -cover ./...
working-directory: src/go/rpk/