From c69c2785531efc55daa55637e3287461bf18b0d7 Mon Sep 17 00:00:00 2001 From: Rodrigue Koffi Date: Sun, 30 Apr 2023 20:39:28 +0200 Subject: [PATCH] Pre-compile binaries (#8) --- .github/workflows/release.yaml | 26 ++++++++++++++++++++++++++ README.md | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..8553702 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/README.md b/README.md index 2eb3404..9832d52 100644 --- a/README.md +++ b/README.md @@ -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