Skip to content

Commit

Permalink
Pre-compile binaries (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonclay7 committed Apr 30, 2023
1 parent c5e3846 commit c69c278
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types: [created]

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
asset_name: amazon-managed-grafana-migrator-${{ matrix.goos }}-${{ matrix.goarch }}
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ Grafana. It supports the following migration scenarios:
:warning: Alerting rules migration are only supported in Amazon Managed Grafana
v9.4

## Build
## Installation

Build from latest release. This requires Go installed on your environement.

```console
go install github.com/aws-observability/amazon-managed-grafana-migrator@latest
```

You can also download the pre-compiled binary for your OS and CPU architecture
from our [GitHub releases](https://github.com/aws-observability/amazon-managed-grafana-migrator/releases/latest).

## Usage

### Discovering your Workspaces
Expand Down

0 comments on commit c69c278

Please sign in to comment.