Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Add workflow to build k2i for multiple platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Herrman committed Jun 26, 2024
1 parent 4a0a030 commit d91d5fd
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-k6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build k2i

on:
push:
tags:
- k2i-*

workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: k6-to-influx

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22.4

- name: Build
run: |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o k2i-linux-amd64 k2i.go
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o k2i-linux-arm64 k2i.go
GOOS=windows GOARCH=386 go build -o k2i-windows-386.exe k2i.go
GOOS=windows GOARCH=amd64 go build -o k2i-windows-amd64.exe k2i.go
GOOS=darwin GOARCH=amd64 go build -o k2i-macos-amd64 k2i.go
GOOS=darwin GOARCH=arm64 go build -o k2i-macos-arm64 k2i.go
- uses: olegtarasov/[email protected]
id: tagName

- uses: ncipollo/[email protected]
with:
artifacts: "k2i-*"
body: "Release ${{ steps.tagName.outputs.tag }}"

0 comments on commit d91d5fd

Please sign in to comment.