Skip to content

Commit

Permalink
CI: Add support for building Windows ARM (#855)
Browse files Browse the repository at this point in the history
* ci: test openssl and arm

* ci: remove redundant config entry

* ci: shorten name
  • Loading branch information
alfredh authored Jun 19, 2023
1 parent 0d4ac72 commit 5e51615
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/cmake_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,52 @@ jobs:
matrix:
config:
- {
name: "Windows (VS 2022/Ninja) Debug",
name: "Windows Debug",
os: windows-2022,
environment_script: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat",
generators: "Ninja",
build: "Debug"
build: "Debug",
openssl: true,
disable_openssl: "OFF",
testing: true
}
- {
name: "Windows (VS 2022/Ninja) Release",
name: "Windows Release",
os: windows-2022,
environment_script: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvars64.bat",
generators: "Ninja",
build: "Release"
build: "Release",
openssl: true,
disable_openssl: "OFF",
testing: true
}
- {
name: "Windows (VS 2022/Ninja) Debug 32-bit",
name: "Windows Debug 32-bit",
os: windows-2022,
environment_script: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsamd64_x86.bat",
generators: "Ninja",
build: "Debug",
choco: "--x86"
openssl: true,
disable_openssl: "OFF",
choco: "--x86",
testing: true
}
- {
name: "Windows Debug ARM64",
os: windows-2022,
environment_script: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsamd64_arm64.bat",
generators: "Ninja",
build: "Debug",
openssl: false,
disable_openssl: "ON",
testing: false
}

steps:
- uses: actions/checkout@v3

- name: Install deps
- name: Install OpenSSL
if: ${{ matrix.config.openssl }}
run: |
choco install --no-progress ${{ matrix.config.choco }} openssl
Expand All @@ -52,10 +72,11 @@ jobs:
call "${{ matrix.config.environment_script }}"
cmake --version
ninja --version
cmake -S . -B build -G "${{ matrix.config.generators }}" -DCMAKE_C_FLAGS="/WX" -DCMAKE_BUILD_TYPE=${{ matrix.config.build }}
cmake -S . -B build -G "${{ matrix.config.generators }}" -DCMAKE_C_FLAGS="/WX" -DCMAKE_BUILD_TYPE=${{ matrix.config.build }} -DCMAKE_DISABLE_FIND_PACKAGE_OpenSSL=${{ matrix.config.disable_openssl }}
cmake --build build --parallel -t retest
- name: retest
if: ${{ matrix.config.testing }}
shell: cmd
run: |
build\test\retest.exe -a -v

0 comments on commit 5e51615

Please sign in to comment.