Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/01-powerpipe-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ jobs:
build_and_release:
name: Build and Release Powerpipe
needs: build_assets
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
env:
VERSION: ${{ needs.ensure_branch_in_homebrew.outputs.version }}
steps:
Expand All @@ -187,6 +187,20 @@ jobs:
repository: turbot/pipe-fittings
path: pipe-fittings

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Install Docker (if needed)
run: |
if ! command -v docker &> /dev/null; then
sudo apt-get update
sudo apt-get install -y docker.io
fi

- name: Verify Docker installation
run: |
docker --version

- name: Calculate version
id: calculate_version
run: |
Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/11-test-acceptance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
jobs:
goreleaser:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -31,6 +31,20 @@ jobs:
path: pipe-fittings
ref: develop

- name: Set up Docker
uses: docker/setup-buildx-action@v3

- name: Install Docker (if needed)
run: |
if ! command -v docker &> /dev/null; then
sudo apt-get update
sudo apt-get install -y docker.io
fi

- name: Verify Docker installation
run: |
docker --version

# this is required, check golangci-lint-action docs
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
Expand Down
18 changes: 14 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ builds:
- arm64

env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- CC=gcc
- CXX=g++
- CGO_ENABLED=1
- GOFLAGS=
- CGO_LDFLAGS=

# Custom ldflags.
#
Expand All @@ -19,7 +22,9 @@ builds:
ldflags:
# Go Releaser analyzes your Git repository and identifies the most recent Git tag (typically the highest version number) as the version for your release.
# This is how it determines the value of {{.Version}}.
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser

tags: []

- id: powerpipe-linux-amd64
binary: powerpipe
Expand All @@ -31,9 +36,14 @@ builds:
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- CGO_ENABLED=1
- GOFLAGS=
- CGO_LDFLAGS=

ldflags:
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser
- -s -w -X main.version={{.Version}} -X main.date={{.Date}} -X main.commit={{.Commit}} -X main.builtBy=goreleaser

tags: []

- id: powerpipe-darwin-arm64
binary: powerpipe
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OUTPUT_DIR?=/usr/local/bin
PACKAGE_NAME := github.com/turbot/powerpipe
GOLANG_CROSS_VERSION ?= gcc13-osxcross-20250912194615
GOLANG_CROSS_VERSION ?= gcc13-osxcross-20251006102018

.PHONY: build
build:
Expand All @@ -21,6 +21,7 @@ all:
release-dry-run:
@docker run \
--rm \
--platform=linux/arm64 \
-e CGO_ENABLED=1 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/powerpipe \
Expand All @@ -38,6 +39,7 @@ release:
fi
docker run \
--rm \
--platform=linux/arm64 \
-e CGO_ENABLED=1 \
--env-file .release-env \
-v /var/run/docker.sock:/var/run/docker.sock \
Expand Down
Loading