Skip to content

Commit

Permalink
set goos and goarch
Browse files Browse the repository at this point in the history
  • Loading branch information
fedordikarev committed Feb 27, 2025
1 parent 77218ca commit 770258c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/00_pull-request-entry-point.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ jobs:
docker-image-base: neondatabase/${{ matrix.go-component }}
retag-base-image: ${{ contains(needs.projects-changed.outputs.cmd-unchanged, matrix.go-component) && (needs.projects-changed.outputs.any-common-changes != 'true') }}
pack-to-docker-image: true
goos: linux
goarch: amd64

test-go-projects:
needs: [ check-permissions, projects-changed ]
Expand All @@ -114,6 +116,8 @@ jobs:
base-sha: ${{ github.event.pull_request.base.sha }}
head-sha: ${{ github.event.pull_request.head.sha }}
skip-tests: ${{ contains(needs.projects-changed.outputs.cmd-unchanged, matrix.go-component) && (! contains(needs.projects-changed.outputs.tests-changes, format('{0}-tests', matrix.go-component))) && (needs.projects-changed.outputs.any-common-changes != 'true') }}
goos: linux
goarch: amd64

e2e-tests:
needs: [ build-or-retag-go-projects ]
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/00_push-entry-point.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,34 @@ jobs:
strategy:
matrix:
go-component: [ 'gh-action', 'history-exporter' ]
uses: ./.github/workflows/50_go_build-one-component.yml
uses: ./.github/workflows/50_go_build-component.yml
secrets: inherit
name: 'Golang: ${{ matrix.go-component }}'
with:
component-name: ${{ matrix.go-component }}
cmd-path: './cmd/${{ matrix.go-component}}'
base-sha: ${{ github.event.after }}
head-sha: ${{ github.event.after }}
docker-image-base: neondatabase/${{ matrix.go-component }}
run-build: true
pack-to-docker-image: true
go-build-cache-restore-or-update: 'update'
go-mod-cache-restore-or-update: 'update'
goos: linux
goarch: amd64

test-go-projects:
strategy:
matrix:
go-component: ${{ fromJson('["gh-action", "history-exporter"]') }}
uses: ./.github/workflows/50_go_build-one-component.yml
uses: ./.github/workflows/50_go_test-component.yml
secrets: inherit
name: 'Unit Tests: ${{ matrix.go-component }}'
with:
component-name: ${{ matrix.go-component }}
cmd-path: './cmd/${{ matrix.go-component}}'
base-sha: ${{ github.event.after }}
head-sha: ${{ github.event.after }}
docker-image-base: neondatabase/${{ matrix.go-component }}
run-tests: true
goos: linux
goarch: amd64

e2e-tests:
needs: [ build-go-projects ]
Expand Down

0 comments on commit 770258c

Please sign in to comment.