Skip to content

Commit

Permalink
Refactor build workflow
Browse files Browse the repository at this point in the history
- Use a reusable workflow for running `go generate`
- Move the .github/scripts/gogenerate.sh to arcaflow-reusable-workflows
  • Loading branch information
webbnh committed Jun 10, 2024
1 parent cbf8ad9 commit 945e114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 44 deletions.
27 changes: 0 additions & 27 deletions .github/scripts/gogenerate.sh

This file was deleted.

20 changes: 3 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,9 @@ jobs:
go_version: ${{ vars.ARCALOT_GO_VERSION }}
generate:
name: go generate
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ vars.ARCALOT_GO_VERSION }}
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-test-${{ hashFiles('**/go.sum') }}
restore-keys: go-generate-
- name: Run go generate
run: ./.github/scripts/gogenerate.sh
uses: arcalot/arcaflow-reusable-workflows/.github/workflows/go_generate.yaml@main
with:
go_version: ${{ vars.ARCALOT_GO_VERSION }}
release:
name: release
permissions:
Expand Down

0 comments on commit 945e114

Please sign in to comment.