Skip to content

Commit

Permalink
Create binaries on each release (#92)
Browse files Browse the repository at this point in the history
* Create release.yml

* Add copyright header and go version to release workflow

* Only build binaries for Linux

* Fix copyright header

* Add EOF space

---------

Co-authored-by: abhinavDhulipala <[email protected]>
  • Loading branch information
willfurnell and abhinavDhulipala authored Aug 15, 2024
1 parent 470bc05 commit 40708f5
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

name: goreleaser

on:
release:
types: [published]

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.20'
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0

builds:
-
goos:
- linux
goarch:
- amd64
- arm
- arm64

0 comments on commit 40708f5

Please sign in to comment.