From b0e69cadd8cc0b4ba0e2809eabb6bd4ba011894f Mon Sep 17 00:00:00 2001 From: Benson Ma Date: Thu, 26 Sep 2024 15:27:26 -0700 Subject: [PATCH] Fix FBGEMM CI on non-pytorch CI infra (#3181) Summary: X-link: https://github.com/facebookresearch/FBGEMM/pull/277 - Fix FBGEMM CI on non-pytorch CI infra Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/3181 Reviewed By: shintaro-iwasaki Differential Revision: D63487219 Pulled By: q10 fbshipit-source-id: bd26c96ce9430e9309c102e13607e2cf6aa6b6bd --- .github/workflows/fbgemm_ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fbgemm_ci.yml b/.github/workflows/fbgemm_ci.yml index 220654c3e..42236a77a 100644 --- a/.github/workflows/fbgemm_ci.yml +++ b/.github/workflows/fbgemm_ci.yml @@ -20,7 +20,8 @@ concurrency: jobs: build-linux: - runs-on: ${{ github.repository_owner == 'pytorch' && matrix.host-machine.instance || 'ubuntu-latest' }} + if: ${{ github.repository_owner == 'pytorch' }} + runs-on: ${{ matrix.host-machine.instance }} container: image: amazonlinux:2023 options: --user root @@ -105,7 +106,8 @@ jobs: build-bazel: - runs-on: ${{ github.repository_owner == 'pytorch' && matrix.host-machine.instance || 'ubuntu-latest' }} + if: ${{ github.repository_owner == 'pytorch' }} + runs-on: ${{ matrix.host-machine.instance }} container: image: amazonlinux:2023 options: --user root