2022-01-05 13:28:14 +00:00
|
|
|
name: CI
|
2021-12-16 19:29:48 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
2022-01-03 15:28:16 +00:00
|
|
|
build-and-test:
|
2022-01-05 09:06:34 +00:00
|
|
|
name: Build & Test (${{ matrix.os }})
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-07-16 21:55:54 +00:00
|
|
|
os: [ windows-2022, ubuntu-20.04, macos-11 ]
|
2021-12-16 19:29:48 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2022-07-16 21:55:54 +00:00
|
|
|
- name: Add msbuild to PATH (Windows only)
|
2022-01-05 13:21:59 +00:00
|
|
|
if: ${{ matrix.os == 'windows-2022' }}
|
2022-01-05 09:06:34 +00:00
|
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
|
|
with:
|
2022-01-05 13:29:24 +00:00
|
|
|
vs-version: '[17,18)'
|
2022-01-05 09:06:34 +00:00
|
|
|
msbuild-architecture: x64
|
2022-07-16 21:55:54 +00:00
|
|
|
- name: Install libssl (Mac Only)
|
|
|
|
if: ${{ matrix.os == 'macos-11' }}
|
|
|
|
run: brew install openssl@3
|
2022-01-03 15:30:29 +00:00
|
|
|
- name: cmake
|
2021-12-16 19:29:48 +00:00
|
|
|
uses: lukka/run-cmake@v10
|
|
|
|
with:
|
2022-01-05 09:06:34 +00:00
|
|
|
configurePreset: "ci-${{matrix.os}}"
|
|
|
|
buildPreset: "ci-${{matrix.os}}"
|
|
|
|
testPreset: "ci-${{matrix.os}}"
|
2021-12-16 19:29:48 +00:00
|
|
|
- name: artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
2022-07-04 08:30:11 +00:00
|
|
|
if: ${{ github.ref == 'ref/head/main' }}
|
2021-12-16 19:29:48 +00:00
|
|
|
with:
|
2022-01-05 09:06:34 +00:00
|
|
|
name: build-${{matrix.os}}
|
2021-12-16 19:29:48 +00:00
|
|
|
path: |
|
|
|
|
build
|
2022-01-05 09:06:34 +00:00
|
|
|
!build/tests
|
|
|
|
!build/Testing
|
|
|
|
!build/CMakeFiles
|
|
|
|
!build/DartConfiguration.tcl
|
|
|
|
!build/CTestTestfile.cmake
|
2021-12-16 19:29:48 +00:00
|
|
|
!build/CMakeCache.txt
|
|
|
|
!build/build.ninja
|
|
|
|
!build/_deps
|
|
|
|
!build/cmake_install.cmake
|
|
|
|
!build/*.a
|
2022-01-05 09:06:34 +00:00
|
|
|
!build/*.lib
|
|
|
|
!build/*.dir
|
|
|
|
!build/*.vcxproj
|
|
|
|
!build/*.vcxproj.filters
|