Adding json-write/pretty #375
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: | |
# Disable it for now, due to the unknown compilation errors which don't | |
# happen any other environments (both local and CI). | |
if: false | |
runs-on: ${{ matrix.images }} | |
strategy: | |
matrix: | |
arch: [x64, x86] | |
images: [windows-2019, windows-2022] | |
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.arch }} | |
- 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 |