GitHub Actions: build more variants
This commit is contained in:
parent
24a64d8740
commit
cd5a160d70
7 changed files with 57 additions and 50 deletions
19
.github/workflows/windows-cxx.yml
vendored
19
.github/workflows/windows-cxx.yml
vendored
|
|
@ -12,22 +12,25 @@ jobs:
|
|||
- amd64
|
||||
- amd64_x86
|
||||
- amd64_arm64
|
||||
cxxstd:
|
||||
- 11
|
||||
- 17
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: Cloning
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: ${{matrix.arch}}
|
||||
- name: Configure CMake
|
||||
run: cmake -B ${{github.workspace}}/build -DRAGEPHOTO_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAGEPHOTO_UNICODE=wincvt -GNinja
|
||||
run: cmake -B "${{github.workspace}}/build" -DRAGEPHOTO_CXX_STANDARD=${{matrix.cxxstd}} -DRAGEPHOTO_UNICODE=wincvt -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja
|
||||
- name: Build
|
||||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}}
|
||||
- name: Install
|
||||
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --prefix ${{github.workspace}}/install
|
||||
run: cmake --install "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}} --prefix "${{github.workspace}}/install"
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows MSVC ${{matrix.arch}}
|
||||
name: Windows MSVC C++${{matrix.cxxstd}} ${{matrix.arch}}
|
||||
path: |
|
||||
${{github.workspace}}/install/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue