fix CI scripts

This commit is contained in:
BlackMATov
2022-11-06 21:03:31 +07:00
parent a0119d38b6
commit 334c4369fa
4 changed files with 23 additions and 13 deletions

View File

@@ -11,19 +11,21 @@ jobs:
config:
# https://github.com/actions/virtual-environments/tree/main/images/macos
- { os: "macos-11", xcode: "13.0", arch: "x64" }
- { os: "macos-11", xcode: "13.1", arch: "x64" }
- { os: "macos-11", xcode: "13.2", arch: "x64" }
- { os: "macos-12", xcode: "14.0", arch: "x64" }
name: "xcode-${{matrix.config.xcode}}"
steps:
- uses: actions/checkout@v2
- name: Setup
run: brew install cmake ninja
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install ninja by Homebrew
run: brew install ninja
- name: Select Xcode
run: sudo xcode-select --switch "/Applications/Xcode_${{matrix.config.xcode}}.app"
- name: Build && Test
- name: Build
run: |
cmake --preset macos-${{matrix.config.arch}}
cmake --build --preset macos-${{matrix.config.arch}}-release
- name: Test
run: |
ctest --preset macos-${{matrix.config.arch}}-release

View File

@@ -15,14 +15,15 @@ jobs:
name: "${{matrix.config.cxx}}"
steps:
- name: Setup
run: sudo apt-get -y install "${{matrix.config.cc}}" "${{matrix.config.cxx}}"
run: sudo apt-get -y install cmake ninja-build ${{matrix.config.cc}} ${{matrix.config.cxx}}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build && Test
env: { CC: "${{matrix.config.cc}}", CXX: "${{matrix.config.cxx}}" }
- name: Build
run: |
cmake --preset linux-${{matrix.config.cc}}
cmake --build --preset linux-${{matrix.config.cc}}-release
- name: Test
run: |
ctest --preset linux-${{matrix.config.cc}}-release

View File

@@ -16,11 +16,18 @@ jobs:
- { os: "windows-2022", vc: "msvc2022", arch: "x64" }
name: "${{matrix.config.vc}} ${{matrix.config.arch}}"
steps:
- uses: actions/checkout@v2
- name: Setup
run: choco install cmake ninja
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Build && Test
- name: Select MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
cmake --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}
cmake --build --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release
- name: Test
run: |
ctest --preset windows-${{matrix.config.arch}}-${{matrix.config.vc}}-release