Skip to content

Commit

Permalink
Merge pull request #2 from bandorko/feature/multiplatform
Browse files Browse the repository at this point in the history
Feature/multiplatform
  • Loading branch information
bandorko authored Oct 1, 2023
2 parents 9a41749 + 2cd8c95 commit b951abe
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release
on:
push:
tags:
- "v*"
permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: "1.20.0"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
project_name: k6-go
before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ k6-go passes all the parameters to the generated custom k6 image.
## build

```bash
go build cmd/k6-go/k6-go.go
go build k6-go.go
```

## example
Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ require (
github.com/otiai10/copy v1.12.0
go.k6.io/xk6 v0.9.2
golang.org/x/mod v0.12.0
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8
)

require github.com/Masterminds/semver/v3 v3.1.1 // indirect
require (
github.com/Masterminds/semver/v3 v3.1.1 // indirect
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
)
File renamed without changes.

0 comments on commit b951abe

Please sign in to comment.