From 946fa9cdee68bb834a3b75821e8e7f94cf86d31c Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Tue, 8 Oct 2024 11:46:02 +0530 Subject: [PATCH] ohos: pin version of setup-ohos-sdk action to fix CI (#33719) The most recent [v0.1.3] release seems to not set the expected OHOS_SDK_NATIVE and OHOS_BASE_SDK_HOME environment variables. This is causing the OHOS builds to fail in CI and blocking the merge queue. This change pins he action to the last known good version until the error can be addressed upstream. Fixes #33712. Signed-off-by: Mukilan Thiyagarajan --- .github/workflows/ohos.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ohos.yml b/.github/workflows/ohos.yml index 0fca73280a4..fcc43652d5d 100644 --- a/.github/workflows/ohos.yml +++ b/.github/workflows/ohos.yml @@ -52,7 +52,11 @@ jobs: run: sudo apt update && python3 ./mach bootstrap --skip-lints - name: Setup OpenHarmony SDK id: setup_sdk - uses: openharmony-rs/setup-ohos-sdk@v0.1 + # FIXME: We pin the exact patch version to the LKG version of the + # action to address bugs in the most recent 0.1.2 release. Once that + # has been addresssed upstream, we can revert to specifying only the + # major.minor tag. + uses: openharmony-rs/setup-ohos-sdk@v0.1.2 with: version: "4.1" components: "native;toolchains;ets;js;previewer"