Minor cleanup #420
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: | |
fail-fast: false | |
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 }} | |
strategy: | |
fail-fast: false | |
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" -DSKIP_TEST_VECTOR=ON | |
shell: cmd | |
- name: Build | |
working-directory: target | |
run: | | |
nmake | |
shell: cmd | |
- name: Test | |
working-directory: target | |
run: | | |
ctest -V -LE json | |
shell: cmd |