1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-07-02 11:43:40 +02:00

.github/workflows/package.yml: we can set arch "directly" on windows.

This commit is contained in:
Henrik Hautakoski 2020-04-25 20:24:55 +02:00
parent 8a9d594d37
commit 0b101728b6

View file

@ -48,7 +48,7 @@ jobs:
windows: windows:
strategy: strategy:
matrix: matrix:
arch: [ x86, x64 ] arch: [ Win32, x64 ]
name: Windows (${{matrix.arch}}) name: Windows (${{matrix.arch}})
runs-on: windows-latest runs-on: windows-latest
steps: steps:
@ -60,13 +60,7 @@ jobs:
version: '5.9' version: '5.9'
- name: Configure - name: Configure
run: | run: cmake -A ${{matrix.arch}} -DCOMPONENT_GUI=ON -DCOMPONENT_CLI=ON -D CMAKE_BUILD_TYPE=Release -D CPACK_GENERATOR=NSIS -S . -B build
if ("${{matrix.arch}}" -eq "x86") {
$PLATFORM="Win32"
} else {
$PLATFORM="${{matrix.arch}}"
}
cmake -A $PLATFORM -DCOMPONENT_GUI=ON -DCOMPONENT_CLI=ON -D CMAKE_BUILD_TYPE=Release -D CPACK_GENERATOR=NSIS -S . -B build
- name: Build - name: Build
run: cmake --build build --config Release run: cmake --build build --config Release