-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
105 additions
and
6 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,65 @@ | ||
name: Build | ||
on: | ||
pull_request: | ||
# TODO: Remove workflow_dispatch later | ||
workflow_dispatch: | ||
jobs: | ||
build_linux: | ||
name: Build on Linux | ||
runs-on: ubuntu-latest | ||
container: grafana/alloy-build-image:v0.1.8 | ||
strategy: | ||
matrix: | ||
os: [linux] | ||
arch: [amd64, arm64, ppc64le, s390x] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
- run: make generate-ui | ||
- run: GO_TAGS="builtinassets promtail_journal_enabled" GOOS={{ matrix.os }} GOARCH={{ matrix.arch }} GOARM= make alloy | ||
build_mac_intel: | ||
name: Build on MacOS (Intel) | ||
runs-on: macos-14-large | ||
container: grafana/alloy-build-image:v0.1.8 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
- run: make generate-ui | ||
- run: GO_TAGS="builtinassets" GOOS=darwin GOARCH=amd64 GOARM= make alloy | ||
build_mac_arm: | ||
name: Build on MacOS (ARM) | ||
runs-on: macos-14-xlarge | ||
container: grafana/alloy-build-image:v0.1.8 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
- run: make generate-ui | ||
- run: GO_TAGS="builtinassets" GOOS=darwin GOARCH=arm64 GOARM= make alloy | ||
build_windows: | ||
name: Build on Windows (AMD64) | ||
runs-on: windows-latest | ||
container: grafana/alloy-build-image:v0.1.8 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
- run: make generate-ui | ||
- run: GO_TAGS="builtinassets" GOOS=windows GOARCH=amd64 GOARM= make alloy | ||
build_freebsd: | ||
name: Build on FreeBSD (AMD64) | ||
runs-on: ubuntu-latest | ||
container: grafana/alloy-build-image:v0.1.8 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@v5 | ||
- run: make generate-ui | ||
- run: GO_TAGS="builtinassets" GOOS=freebsd GOARCH=amd64 GOARM= make alloy |
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