Skip to content

Commit

Permalink
single goreleaser file
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit Zafran committed Mar 25, 2024
1 parent bcfef15 commit 2671f1a
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 201 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ on:

jobs:
ci:
strategy:
matrix:
binary: [lavad, lavap, lavavisor]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
Expand All @@ -31,13 +27,12 @@ jobs:
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: build --single-target --snapshot --clean
workdir: cmd/${{ matrix.binary }}
args: build --snapshot --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary }}-${{ fromJson(steps.releaser.outputs.metadata).tag }}-${{ fromJson(steps.releaser.outputs.metadata).runtime.goos }}-${{ fromJson(steps.releaser.outputs.metadata).runtime.goarch }}
path: cmd/${{ matrix.binary }}/dist/*
# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.binary }}-${{ fromJson(steps.releaser.outputs.metadata).tag }}-${{ fromJson(steps.releaser.outputs.metadata).runtime.goos }}-${{ fromJson(steps.releaser.outputs.metadata).runtime.goarch }}
# path: cmd/${{ matrix.binary }}/dist/*
58 changes: 57 additions & 1 deletion cmd/lavavisor/.goreleaser.yaml → .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
project_name: lavavisor
project_name: lava
before:
hooks:
# You may remove this if you don't use go modules.
Expand All @@ -15,6 +15,62 @@ before:

builds:
- id: lavavisor
binary: lavavisor
dir: lavavisor
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: s390x
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
- goos: windows
goarch: arm64
flags:
- -mod=readonly
- -trimpath

- id: lavad
binary: lavad
dir: lavad
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: s390x
- goos: darwin
goarch: ppc64le
- goos: windows
goarch: s390x
- goos: windows
goarch: ppc64le
- goos: windows
goarch: arm64
flags:
- -mod=readonly
- -trimpath

- id: lavap
binary: lavap
dir: lavap
env:
- CGO_ENABLED=0
goos:
Expand Down
94 changes: 0 additions & 94 deletions cmd/lavad/.goreleaser.yaml

This file was deleted.

94 changes: 0 additions & 94 deletions cmd/lavap/.goreleaser.yaml

This file was deleted.

0 comments on commit 2671f1a

Please sign in to comment.