Skip to content

Commit 31772dc

Browse files
committed
ci(repro): build shared deps before windows binary repro
1 parent 8b1a486 commit 31772dc

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/cli-smoke-test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
if: ${{ github.event_name == 'workflow_dispatch' && inputs.run_windows_settings_lock_repro == true }}
7777
runs-on: windows-latest
7878
timeout-minutes: 45
79+
env:
80+
HAPPIER_REPRO_DIAG_DIR: ${{ runner.temp }}\happier-cli-win-lock-repro-diagnostics
7981

8082
steps:
8183
- name: Checkout code
@@ -88,6 +90,12 @@ jobs:
8890
cache: 'yarn'
8991
cache-dependency-path: yarn.lock
9092

93+
- name: Prepare repro diagnostics directory
94+
shell: pwsh
95+
run: |
96+
$ErrorActionPreference = "Stop"
97+
New-Item -ItemType Directory -Path $env:HAPPIER_REPRO_DIAG_DIR -Force | Out-Null
98+
9199
- name: Enable Corepack
92100
shell: bash
93101
run: |
@@ -107,6 +115,12 @@ jobs:
107115
HAPPIER_UI_VENDOR_WEB_ASSETS: "0"
108116
run: yarn install --frozen-lockfile --ignore-engines
109117

118+
- name: Build shared CLI workspace dependencies
119+
shell: pwsh
120+
run: |
121+
$ErrorActionPreference = "Stop"
122+
node apps/cli/scripts/buildSharedDeps.mjs
123+
110124
- name: Build Windows CLI binary
111125
shell: pwsh
112126
run: |
@@ -133,7 +147,6 @@ jobs:
133147
}
134148
135149
"HAPPIER_BINARY=$($binary.FullName)" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
136-
"HAPPIER_REPRO_DIAG_DIR=$(Join-Path $env:RUNNER_TEMP 'happier-cli-win-lock-repro-diagnostics')" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
137150
138151
- name: Seed auth state and run repro
139152
shell: pwsh

0 commit comments

Comments
 (0)