From b8474af66e345a10b8ce2fe3f8b06cb1fadcdf39 Mon Sep 17 00:00:00 2001 From: Chao Sun Date: Mon, 26 Feb 2024 21:48:08 -0800 Subject: [PATCH] test: Move MacOS (x86) pipelines to post-commit --- .github/workflows/pr_build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index fe8303224..fe4dd04a6 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -44,6 +44,11 @@ jobs: os: [ubuntu-latest] java_version: [8, 11, 17] test-target: [rust, java] + is_push_event: + - ${{ github.event_name == 'push' }} + exclude: # exclude java 11 for pull_request event + - java_version: 11 + is_push_event: false fail-fast: false name: ${{ matrix.test-target }} test on ${{ matrix.os }} with java ${{ matrix.java_version }} runs-on: ${{ matrix.os }} @@ -73,12 +78,8 @@ jobs: os: [macos-13] java_version: [8, 11, 17] test-target: [rust, java] - is_push_event: - - ${{ github.event_name == 'push' }} - exclude: # exclude java 11 for pull_request event - - java_version: 11 - is_push_event: false fail-fast: false + if: github.event_name == 'push' name: ${{ matrix.test-target }} test on ${{ matrix.os }} with java ${{ matrix.java_version }} runs-on: ${{ matrix.os }} env: