Skip to content

Commit 3b36c1d

Browse files
committed
[skip slack] update windows ci
1 parent fe368c3 commit 3b36c1d

File tree

4 files changed

+9
-14
lines changed

4 files changed

+9
-14
lines changed

.github/workflows/pr_test_build_windows.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,11 @@ jobs:
139139
Write-Host "=== Generating localization files ==="
140140
cp pubspec_base.yaml pubspec.yaml
141141
flutter pub get
142-
dart run tool\generate_localization.dart
142+
dart run .\tool\generate_localization.dart
143+
dart run .\tool\download_moneroc_prebuilds.dart
143144
144145
145-
- name: download monero_c prebuilds (can't build inside of windows container)
146-
run: |
147-
cp pubspec_base.yaml pubspec.yaml
148-
flutter pub get
149-
dart run tool/download_moneroc_prebuilds.dart
150-
151-
- name: Build
146+
s - name: Build
152147
run: |
153148
echo === Building the application executable file ===
154149
call flutter build windows --release

scripts/windows/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
actions-runner

scripts/windows/Dockerfile.windows

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,10 @@ RUN powershell -Command \
5959
7z x actions-runner.zip -oC:\actions-runner -bsp1 -bse1 ; \
6060
Remove-Item -Path 'actions-runner.zip'
6161

62-
COPY ci_entrypoint.ps1 /actions-runner/ci_entrypoint.ps1
63-
COPY ci_register.ps1 /actions-runner/ci_register.ps1
62+
COPY actions-runner/.credentials /actions-runner/.credentials
63+
COPY actions-runner/.credentials_rsaparams /actions-runner/.credentials_rsaparams
64+
COPY actions-runner/.runner /actions-runner/.runner
6465

65-
ENV RUNNER_REPO_URL=https://github.com/cake-tech/cake_wallet
66-
ARG RUNNER_TOKEN
67-
RUN powershell -File ci_register.ps1
66+
COPY ci_entrypoint.ps1 /actions-runner/ci_entrypoint.ps1
6867

6968
ENTRYPOINT ["powershell", "-File", "ci_entrypoint.ps1"]

scripts/windows/ci_entrypoint.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ $runnerDir = "C:\actions-runner"
22
$runCmd = "$runnerDir\run.cmd"
33

44
Write-Host "Starting the runner..."
5-
& $runCmds
5+
& $runCmd

0 commit comments

Comments
 (0)