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

Commit

Permalink
Build j2i for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Herrman committed Jun 26, 2024
1 parent 5524fc7 commit 5c14fcf
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,30 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: jmeter-to-influx

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

- name: Build
run: |
CGO_ENABLED=0 go build j2i.go
- name: List files
run: ls -lhart
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].2
- uses: olegtarasov/[email protected].3
id: tagName
with:
tagRegex: "j2i-(.*)"

- uses: ncipollo/release-action@v1
- uses: ncipollo/release-action@v1.14.0
with:
artifacts: "j2i"
artifacts: "j2i-*"
body: "Release ${{ steps.tagName.outputs.tag }}"

0 comments on commit 5c14fcf

Please sign in to comment.