Skip to content

Update shell configuration for multiple shells #25

Update shell configuration for multiple shells

Update shell configuration for multiple shells #25

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: Build Binary for Linux
run: |
make build GOARCH=amd64
tar -czvf "lda-linux-amd64.tar.gz" "lda"
make build GOARCH=arm64
tar -czvf "lda-linux-arm64.tar.gz" "lda"
- uses: actions/upload-artifact@v4
with:
name: lda-linux-amd64.tar.gz
path: lda-linux-amd64.tar.gz
- uses: actions/upload-artifact@v4
with:
name: lda-linux-arm64.tar.gz
path: lda-linux-arm64.tar.gz
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.4'
- name: Build Binary for macOS
run: |
make build GOARCH=amd64
tar -czvf "lda-darwin-amd64.tar.gz" "lda"
make build GOARCH=arm64
tar -czvf "lda-darwin-arm64.tar.gz" "lda"
- uses: actions/upload-artifact@v4
with:
name: lda-darwin-amd64.tar.gz
path: lda-darwin-amd64.tar.gz
- uses: actions/upload-artifact@v4
with:
name: lda-darwin-arm64.tar.gz
path: lda-darwin-arm64.tar.gz
create-release:
needs: [build-linux, build-macos]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts/
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
artifacts/lda-darwin-arm64.tar.gz/lda-darwin-arm64.tar.gz
artifacts/lda-darwin-amd64.tar.gz/lda-darwin-amd64.tar.gz
artifacts/lda-linux-amd64.tar.gz/lda-linux-amd64.tar.gz
artifacts/lda-linux-arm64.tar.gz/lda-linux-arm64.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}