Skip to content

Commit a12fe40

Browse files
committed
Manually generate dummy revision.h file
1 parent 123726c commit a12fe40

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/windows.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,20 @@ jobs:
158158
# But not for this Visual Studio workflow. So here we extract gems before building.
159159
- run: nmake extract-gems
160160

161+
# windows-11-arm runner cannot run `ruby tool/file2lastrev.rb --revision.h --output=revision.h`
162+
- run: |
163+
Set-Content -Path "revision.h" -Value @"
164+
#define RUBY_REVISION "8aedb979da"
165+
#define RUBY_FULL_REVISION "8aedb979da4090116f4fc5a6497f139fd0038881"
166+
#define RUBY_BRANCH_NAME "win-arm"
167+
#define RUBY_RELEASE_DATETIME "2025-04-16T23:18:54Z"
168+
#define RUBY_RELEASE_YEAR 2025
169+
#define RUBY_RELEASE_MONTH 4
170+
#define RUBY_RELEASE_DAY 17
171+
"@
172+
shell: pwsh
173+
if: ${{ matrix.os == '11-arm' }}
174+
161175
- run: nmake
162176

163177
- name: Set up Launchable

0 commit comments

Comments
 (0)