Commit a75f2a3ab7 for openssl.org
commit a75f2a3ab72592c9cd3cf8ed2b104bec4126e46a
Author: Dmitry Misharov <dmitry@openssl.org>
Date: Tue Dec 1 10:11:23 2026 +0100
.github: install Ninja and NASM via composite actions in ninja.yml
Chocolatey no longer puts NASM on the Windows runner, so the Windows
Ninja job fails at Configure. Use install-nasm and a new install-ninja
action, which fetches Ninja from the openssl-library.org mirror.
Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Merge-date: Thu Dec 3 09:44:07 2026
Merged-from: https://github.com/openssl/openssl/pull/34108
diff --git a/.github/actions/install-ninja/action.yml b/.github/actions/install-ninja/action.yml
new file mode 100644
index 0000000000..3f22d5cc55
--- /dev/null
+++ b/.github/actions/install-ninja/action.yml
@@ -0,0 +1,32 @@
+# Copyright 2026 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+name: install ninja
+description: Install Ninja on a Windows runner and add it to PATH
+
+runs:
+ using: composite
+ steps:
+ # openssl/openssl uses its own mirror; the checksum is in .github/ci-deps.json
+ - name: install ninja
+ if: github.repository == 'openssl/openssl'
+ shell: pwsh
+ run: |
+ mkdir C:\ninja
+ Invoke-WebRequest -Uri "https://openssl-library.org/ci-deps/ninja-1.13.2.exe" -OutFile C:\ninja\ninja.exe -MaximumRetryCount 3 -RetryIntervalSec 30
+ $expected = (Get-Content "$env:GITHUB_WORKSPACE\.github\ci-deps.json" -Raw | ConvertFrom-Json).'ninja-1.13.2.exe'
+ $actual = (Get-FileHash C:\ninja\ninja.exe -Algorithm SHA256).Hash
+ if ($actual -ne $expected) { throw "SHA256 mismatch for ninja.exe (expected $expected, got $actual)" }
+ "C:\ninja" | Out-File -FilePath "$env:GITHUB_PATH" -Append
+ - name: install ninja (forks)
+ if: github.repository != 'openssl/openssl'
+ shell: pwsh
+ run: |
+ mkdir C:\ninja
+ Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v1.13.2/ninja-win.zip" -OutFile C:\ninja\ninja-win.zip
+ Expand-Archive -Path C:\ninja\ninja-win.zip -DestinationPath C:\ninja
+ "C:\ninja" | Out-File -FilePath "$env:GITHUB_PATH" -Append
diff --git a/.github/ci-deps.json b/.github/ci-deps.json
index f075460ff0..9d37318db0 100644
--- a/.github/ci-deps.json
+++ b/.github/ci-deps.json
@@ -1,5 +1,6 @@
{
"jom-1.1.7.exe": "8435dbf96eb9ee65395d46d04dc3af2ff6b2618aefbc7964eeede9be669e8bd6",
"nasm-3.01-installer-x64.exe": "7881e9febc8b6558581041019b7890f109bef0694d93ed82c9589794c7b5a600",
- "nasm-3.01-installer-x86.exe": "2e3041dd2abe36cb7e9938057c3cf090dd2eac42d3280957359f87c4d83b9ed0"
+ "nasm-3.01-installer-x86.exe": "2e3041dd2abe36cb7e9938057c3cf090dd2eac42d3280957359f87c4d83b9ed0",
+ "ninja-1.13.2.exe": "e52a7ad9538d9618c67a0bd777964e2eec8a30f68b810a2f6adce1f2daf847b8"
}
diff --git a/.github/workflows/ninja.yml b/.github/workflows/ninja.yml
index ddd87a9ed8..694a2f9251 100644
--- a/.github/workflows/ninja.yml
+++ b/.github/workflows/ninja.yml
@@ -103,10 +103,10 @@ jobs:
persist-credentials: false
- name: checkout fuzz/corpora submodule
run: git submodule update --init --depth 1 fuzz/corpora
- - name: install build tools
- run: |
- choco install nasm ninja
- "C:\Program Files\NASM" | Out-File -FilePath "$env:GITHUB_PATH" -Append
+ - name: install nasm
+ uses: ./.github/actions/install-nasm
+ - name: install ninja
+ uses: ./.github/actions/install-ninja
- name: prepare the build directory
run: mkdir _build
- name: config