This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to build j2i for multiple platforms
- Loading branch information
Martin Herrman
committed
Jun 26, 2024
1 parent
7117275
commit 4a0a030
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: build j2i | ||
|
||
on: | ||
push: | ||
tags: | ||
- j2i-* | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: jmeter-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 j2i-linux-amd64 j2i.go | ||
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o j2i-linux-arm64 j2i.go | ||
GOOS=windows GOARCH=386 go build -o j2i-windows-386.exe j2i.go | ||
GOOS=windows GOARCH=amd64 go build -o j2i-windows-amd64.exe j2i.go | ||
GOOS=darwin GOARCH=amd64 go build -o j2i-macos-amd64 j2i.go | ||
GOOS=darwin GOARCH=arm64 go build -o j2i-macos-arm64 j2i.go | ||
- uses: olegtarasov/[email protected] | ||
id: tagName | ||
|
||
- uses: ncipollo/[email protected] | ||
with: | ||
artifacts: "j2i-*" | ||
body: "Release ${{ steps.tagName.outputs.tag }}" |