From 137647b6c60b4c5eb8e1346aaa387c64a0943c3a Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Tue, 7 Jan 2025 01:25:35 -0500 Subject: [PATCH] ci: enhance CI workflow and environment check script --- .github/workflows/desktop-publish.yml | 6 +++--- packages/ci/scripts/ci-env-check.ts | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/desktop-publish.yml b/.github/workflows/desktop-publish.yml index 82c1baf..8c8553a 100644 --- a/.github/workflows/desktop-publish.yml +++ b/.github/workflows/desktop-publish.yml @@ -34,7 +34,7 @@ jobs: with: submodules: "true" - - name: install dependencies (ubuntu only) + - name: Install Dependencies (ubuntu only) if: matrix.settings.platform == 'ubuntu-22.04' # This must match the platform value defined above. run: | sudo apt-get update @@ -51,7 +51,7 @@ jobs: run: | sudo apt install -y protobuf-compiler - uses: pnpm/action-setup@v4 - - name: setup node + - name: Setup Node uses: actions/setup-node@v4 with: node-version: lts/* @@ -76,7 +76,7 @@ jobs: run: | rustup target add aarch64-apple-darwin rustup target add x86_64-apple-darwin - - name: Rust cache + - name: Rust Cache uses: swatinem/rust-cache@v2 with: workspaces: ". -> target" diff --git a/packages/ci/scripts/ci-env-check.ts b/packages/ci/scripts/ci-env-check.ts index 8efe980..9509ddd 100644 --- a/packages/ci/scripts/ci-env-check.ts +++ b/packages/ci/scripts/ci-env-check.ts @@ -20,6 +20,11 @@ if (process.platform === "win32") { console.log( `Program Files Directory (${programFilesDir}) Exists: ${fs.existsSync(programFilesDir)}` ) + console.log("Program Files Directory Contents:") + for (const dir of fs.readdirSync(programFilesDir)) { + console.log(dir) + } + console.log(`OPENSSL_DIR (${OPENSSL_DIR}) Exists: ${fs.existsSync(OPENSSL_DIR)}`) console.log( `OPENSSL_INCLUDE_DIR (${OPENSSL_INCLUDE_DIR}) Exists: ${fs.existsSync(OPENSSL_INCLUDE_DIR)}`