2023-06-07 06:57:23 +02:00
|
|
|
name: Windows C
|
2021-11-12 03:06:37 +01:00
|
|
|
|
2021-12-02 03:14:19 +01:00
|
|
|
on: push
|
2021-11-12 03:06:37 +01:00
|
|
|
|
|
|
|
jobs:
|
2021-12-02 03:14:19 +01:00
|
|
|
Release:
|
2021-11-12 03:06:37 +01:00
|
|
|
runs-on: windows-latest
|
2021-12-02 03:14:19 +01:00
|
|
|
env:
|
|
|
|
BUILD_TYPE: Release
|
2021-12-04 08:37:58 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- amd64_x86
|
|
|
|
- amd64_arm64
|
2021-11-12 03:06:37 +01:00
|
|
|
steps:
|
2024-12-08 21:55:03 +01:00
|
|
|
- uses: actions/checkout@v4
|
2021-12-02 03:14:19 +01:00
|
|
|
with:
|
2021-11-12 03:06:37 +01:00
|
|
|
submodules: recursive
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1
|
2021-12-04 08:37:58 +01:00
|
|
|
with:
|
|
|
|
arch: ${{matrix.arch}}
|
2021-11-12 03:06:37 +01:00
|
|
|
- name: Configure CMake
|
2023-06-07 06:57:23 +02:00
|
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRAGEPHOTO_C_LIBRARY=ON -DRAGEPHOTO_UNICODE=wincvt -GNinja
|
2021-11-12 03:06:37 +01:00
|
|
|
- name: Build
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
2021-12-01 09:04:10 +01:00
|
|
|
- name: Install
|
2021-12-02 03:14:19 +01:00
|
|
|
run: cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --prefix ${{github.workspace}}/install
|
2021-12-01 09:04:10 +01:00
|
|
|
- name: Upload
|
2024-12-08 21:55:03 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-12-01 09:04:10 +01:00
|
|
|
with:
|
2021-12-04 08:37:58 +01:00
|
|
|
name: Windows MSVC ${{matrix.arch}}
|
2021-12-01 09:04:10 +01:00
|
|
|
path: |
|
2021-12-02 03:14:19 +01:00
|
|
|
${{github.workspace}}/install/
|