mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-10 02:58:05 -05:00
simplify CI
This commit is contained in:
parent
762dd8a21b
commit
abf5aa68f8
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
@ -18,39 +18,47 @@ jobs:
|
|||||||
- triplet: x64-linux
|
- triplet: x64-linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
vcpkg_root: /usr/local/share/vcpkg
|
generator: Unix Makefiles
|
||||||
|
vcpkg_root:
|
||||||
- triplet: x64-osx
|
- triplet: x64-osx
|
||||||
compiler: clang
|
compiler: clang
|
||||||
os: macOS-latest
|
os: macOS-latest
|
||||||
|
generator: Unix Makefiles
|
||||||
vcpkg_root: /usr/local/share/vcpkg
|
vcpkg_root: /usr/local/share/vcpkg
|
||||||
cache: /Users/runner/.cache/vcpkg/archives
|
cache: /Users/runner/.cache/vcpkg/archives
|
||||||
- triplet: x64-windows
|
- triplet: x64-windows
|
||||||
compiler: vs
|
compiler: vs
|
||||||
arch: x64
|
arch: x64
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
generator: Ninja
|
||||||
vcpkg_root: C:/vcpkg
|
vcpkg_root: C:/vcpkg
|
||||||
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
||||||
- triplet: x86-windows
|
- triplet: x86-windows
|
||||||
compiler: vs
|
compiler: vs
|
||||||
arch: x86
|
arch: x86
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
generator: Ninja
|
||||||
vcpkg_root: C:/vcpkg
|
vcpkg_root: C:/vcpkg
|
||||||
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
||||||
- triplet: x64-windows-static
|
- triplet: x64-windows-static
|
||||||
compiler: vs
|
compiler: vs
|
||||||
arch: x64
|
arch: x64
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
generator: Ninja
|
||||||
vcpkg_root: C:/vcpkg
|
vcpkg_root: C:/vcpkg
|
||||||
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
||||||
- triplet: x64-windows
|
- triplet: x64-windows
|
||||||
compiler: mingw
|
compiler: mingw
|
||||||
arch: x64
|
|
||||||
os: windows-latest
|
os: windows-latest
|
||||||
|
generator: Ninja
|
||||||
vcpkg_root: C:/vcpkg
|
vcpkg_root: C:/vcpkg
|
||||||
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
cache: C:/Users/runneradmin/AppData/Local/vcpkg/archives
|
||||||
|
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
|
env:
|
||||||
|
VCPKG_ROOT: ${{matrix.vcpkg_root}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -80,33 +88,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
cmake-version: '3.17.0'
|
cmake-version: '3.17.0'
|
||||||
|
|
||||||
- name: Configure CMake (Linux)
|
- name: Configure CMake
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: cmake
|
run: cmake
|
||||||
|
-G "${{matrix.generator}}"
|
||||||
-S ${{github.workspace}}
|
-S ${{github.workspace}}
|
||||||
-B ${{github.workspace}}/build
|
-B ${{github.workspace}}/build
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist
|
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist
|
||||||
|
|
||||||
- name: Configure CMake (macOS)
|
|
||||||
if: matrix.os == 'macOS-latest'
|
|
||||||
run: cmake
|
|
||||||
-S ${{github.workspace}}
|
|
||||||
-B ${{github.workspace}}/build
|
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist
|
|
||||||
-DCMAKE_TOOLCHAIN_FILE=${{matrix.vcpkg_root}}/scripts/buildsystems/vcpkg.cmake
|
|
||||||
-DVCPKG_TARGET_TRIPLET=${{matrix.triplet}}
|
|
||||||
|
|
||||||
- name: Configure CMake (Windows)
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: cmake
|
|
||||||
-G Ninja
|
|
||||||
-S ${{github.workspace}}
|
|
||||||
-B ${{github.workspace}}/build
|
|
||||||
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
||||||
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/dist
|
|
||||||
-DCMAKE_TOOLCHAIN_FILE=${{matrix.vcpkg_root}}/scripts/buildsystems/vcpkg.cmake
|
|
||||||
-DVCPKG_TARGET_TRIPLET=${{matrix.triplet}}
|
-DVCPKG_TARGET_TRIPLET=${{matrix.triplet}}
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -3,10 +3,9 @@ cmake_minimum_required(VERSION 3.17)
|
|||||||
|
|
||||||
# autodetect vcpkg CMAKE_TOOLCHAIN_FILE if VCPKG_ROOT is defined
|
# autodetect vcpkg CMAKE_TOOLCHAIN_FILE if VCPKG_ROOT is defined
|
||||||
# this needs to be configured before the project() directive
|
# this needs to be configured before the project() directive
|
||||||
if(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
if(DEFINED ENV{VCPKG_ROOT} AND NOT $ENV{VCPKG_ROOT} STREQUAL "" AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||||
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "")
|
||||||
CACHE STRING "")
|
endif(DEFINED ENV{VCPKG_ROOT} AND NOT $ENV{VCPKG_ROOT} STREQUAL "" AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
||||||
endif(DEFINED ENV{VCPKG_ROOT} AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
||||||
set(BUILTIN_SOCKET ON CACHE BOOL "") # for static Python
|
set(BUILTIN_SOCKET ON CACHE BOOL "") # for static Python
|
||||||
|
|
||||||
# configure basic project information
|
# configure basic project information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user