b838c505a4
RagePhoto.h -> RagePhoto.hpp RagePhotoA.h -> RagePhotoA.hpp RagePhotoC.h -> RagePhoto.h unicode.cmake: exclude codecvt for C builds GitHub Actions: separate C and CXX builds
34 lines
966 B
YAML
34 lines
966 B
YAML
name: Windows CXX
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
Release:
|
|
runs-on: windows-latest
|
|
env:
|
|
BUILD_TYPE: Release
|
|
strategy:
|
|
matrix:
|
|
arch:
|
|
- amd64
|
|
- amd64_x86
|
|
- amd64_arm64
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
|
with:
|
|
arch: ${{matrix.arch}}
|
|
- name: Configure CMake
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAGEPHOTO_UNICODE=wincvt -GNinja
|
|
- name: Build
|
|
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
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: Windows MSVC ${{matrix.arch}}
|
|
path: |
|
|
${{github.workspace}}/install/
|