소스 검색

Add 3p build workflow for special cases (#259)

Adds a section in the 3p build for certain cases, for instance
DirectXShaderCompiler needs to be built on Windows 2019/VS2019
Mike Chang 1 년 전
부모
커밋
f0d8925eed
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      .github/workflows/build-package.yaml

+ 6 - 0
.github/workflows/build-package.yaml

@@ -62,6 +62,12 @@ jobs:
                 DOCKER=$(test -e ${PACKPATH%% }/Dockerfile* && echo 1 || echo 0) # Assume the build scripts will use the Dockerfile if found in the package path
                 DOCKERFILE["$PACKAGE"]=1 # Mark Dockerfile check as done
               fi
+
+              # Special cases for certain packages
+              if [[ $PACKAGE =~ "DirectXShaderCompilerDxc" ]] && [[ $PLATFORM =~ "windows" ]]; then
+                OS_RUNNER="windows-2019"
+              fi
+              
               PACKAGES_JSON["$PACKAGE"]="{\"package\": \"$PACKAGE\", \"os\": \"$OS_RUNNER\", \"dockerfile\": \"$DOCKER\"}"
             done
             unset IFS