Try Windows 2022 #294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sagittarius CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
POSIX-Build: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- { os: 'ubuntu-latest', setup: '.ci/setup-ubuntu.sh' } | |
- { os: 'macos-latest', setup: '.ci/setup-macos.sh' } | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: target | |
- name: Install dependencies | |
run: | | |
bash "target/${{ matrix.config.setup }}" "sudo" | |
mkdir current_sagittarius | |
- name: Install current sagittarius | |
working-directory: current_sagittarius | |
run: | | |
bash ../target/.ci/build-current.sh 'yes' | |
- name: Pre-build | |
working-directory: target | |
run: | | |
./dist.sh gen | |
cmake . | |
- name: Build | |
working-directory: target | |
run: make | |
- name: Test | |
working-directory: target | |
run: ctest -V | |
Windows-Build: | |
runs-on: ${{ matrix.images.name }} | |
strategy: | |
matrix: | |
images: | |
# - name: windows-2019 | |
# vspath: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise' | |
# arch: x86_amd64 | |
# - name: windows-2019 | |
# vspath: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise' | |
# arch: x86 | |
- name: windows-2022 | |
vspath: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' | |
arch: x64 | |
- name: windows-2022 | |
vspath: 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' | |
arch: x86 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: target | |
- name: Install current sagittarius | |
working-directory: target | |
run: | | |
.\.ci\install-current.ps1 | |
shell: powershell | |
- name: Setup MSVC | |
uses: TheMrMilchmann/setup-msvc-dev@v3 | |
with: | |
arch: ${{ matrix.images.arch }} | |
vs-path: ${{ matrix.images.vspath }} | |
- name: Pre build | |
working-directory: target | |
run: | | |
dist.bat gen | |
shell: cmd | |
- name: CMake | |
working-directory: target | |
run: | | |
cmake . -G "NMake Makefiles" -DDEBUG_VERSION=OFF | |
shell: cmd | |
- name: Build | |
working-directory: target | |
run: | | |
nmake | |
shell: cmd | |
- name: Test | |
working-directory: target | |
run: | | |
ctest -V -LE json | |
shell: cmd |