]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
run Windows GitHub CI workflow on self-hosted runners
authorDmitry Misharov <dmitry@openssl.org>
Thu, 14 Dec 2023 12:36:04 +0000 (13:36 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Dec 2023 10:22:24 +0000 (11:22 +0100)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23042)

(cherry picked from commit ce42b72cb1ca2ba8669bc28a70ed9dca28b7a551)

.github/workflows/windows.yml

index a3274457c3cf02c3783e2494758dc8f8b7aef0d5..2e0f4fe0c90b078b75251ef0328f6e84a70c285a 100644 (file)
@@ -25,7 +25,7 @@ jobs:
             config: enable-fips
           - arch: win32
             config: --strict-warnings no-fips
-    runs-on: ${{matrix.os}}
+    runs-on: ${{ github.server_url == 'https://github.com' && matrix.os || format('{0}-self-hosted', matrix.os) }}
     steps:
     - uses: actions/checkout@v4
     - uses: ilammy/msvc-dev-cmd@v1
@@ -61,7 +61,7 @@ jobs:
         os:
           - windows-2019
           - windows-2022
-    runs-on: ${{matrix.os}}
+    runs-on: ${{ github.server_url == 'https://github.com' && matrix.os || format('{0}-self-hosted', matrix.os) }}
     steps:
     - uses: actions/checkout@v4
     - uses: ilammy/msvc-dev-cmd@v1
@@ -85,7 +85,7 @@ jobs:
         os:
           - windows-2019
           - windows-2022
-    runs-on: ${{matrix.os}}
+    runs-on: ${{ github.server_url == 'https://github.com' && matrix.os || format('{0}-self-hosted', matrix.os) }}
     steps:
     - uses: actions/checkout@v4
     - uses: ilammy/msvc-dev-cmd@v1