Skip to content

Commit

Permalink
apacheGH-36128: [CI][Go] Run benchmark steps only on the main branch
Browse files Browse the repository at this point in the history
Because our benchmark tool supports only the main branch.
  • Loading branch information
kou committed Jun 21, 2023
1 parent d7b3d4f commit c342808
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:
if: >-
success() &&
github.event_name == 'push' &&
github.repository == 'apache/arrow'
github.repository == 'apache/arrow' &&
github.ref_name == 'main'
env:
ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -105,7 +106,8 @@ jobs:
success() &&
matrix.arch == 'amd64' &&
github.event_name == 'push' &&
github.repository == 'apache/arrow'
github.repository == 'apache/arrow' &&
github.ref_name == 'main'
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
Expand All @@ -131,13 +133,13 @@ jobs:
name: Go Cross-build for 386
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
timeout-minutes: 20
timeout-minutes: 20
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Go
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18
Expand Down Expand Up @@ -225,7 +227,11 @@ jobs:
ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
run: archery docker run debian-go-cgo-python
- name: Docker Push
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
if: >-
success() &&
github.event_name == 'push' &&
github.repository == 'apache/arrow' &&
github.ref_name == 'main'
env:
ARCHERY_DOCKER_USER: ${{ secrets.DOCKERHUB_USER }}
ARCHERY_DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -302,12 +308,20 @@ jobs:
shell: bash
run: ci/scripts/go_test.sh $(pwd)
- name: Setup Python
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
if: >-
success() &&
github.event_name == 'push' &&
github.repository == 'apache/arrow' &&
github.ref_name == 'main'
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run Benchmarks
if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
if: >-
success() &&
github.event_name == 'push' &&
github.repository == 'apache/arrow' &&
github.ref_name == 'main'
shell: bash
env:
CONBENCH_URL: 'https://conbench.ursa.dev'
Expand Down

0 comments on commit c342808

Please sign in to comment.