Skip to content

Commit

Permalink
optimize by not generating all the sources for all distros
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
  • Loading branch information
mowies committed Sep 19, 2024
1 parent 98f3553 commit fac1ae7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/base-ci-goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ jobs:
go-version: '1.23'
check-latest: true

- name: Generate the sources using latest main
- name: Generate the sources using latest main for ${{ inputs.distribution }}
if: inputs.latest == true
env:
DISTRIBUTIONS: ${{ inputs.distribution }}
run: make generate-sources-dev

- name: Generate the sources
- name: Generate the sources for ${{ inputs.distribution }}
if: inputs.latest != true
env:
DISTRIBUTIONS: ${{ inputs.distribution }}
run: make generate-sources

- name: Run GoReleaser for ${{ inputs.distribution }}
Expand Down

0 comments on commit fac1ae7

Please sign in to comment.