-
Notifications
You must be signed in to change notification settings - Fork 64
48 lines (46 loc) · 1.55 KB
/
astronomy-engine-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Astronomy Engine Unit Tests
on: [push]
jobs:
Astronomy-Engine:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-11, windows-latest ]
steps:
- uses: actions/checkout@v3
- name: Add msbuild to path
if: startsWith(matrix.os, 'windows')
uses: microsoft/[email protected]
- name: Init dotnet core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Init Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install Python tools
run: python -m pip install --upgrade pip && pip install pylint mypy
- name: Install documentation tools Linux
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt install -y doxygen xsltproc cppcheck
- name: Install documentation tools macOS
if: startsWith(matrix.os, 'macOS')
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install doxygen cppcheck
- name: Init Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
- uses: gradle/wrapper-validation-action@v1
- name: Test Astronomy Engine Unix
if: startsWith(matrix.os, 'windows') == false
run: cd generate && rm -f output/vsop*.txt output/*.eph output/jupiter_moons.txt && ./run && ./verify_clean
- name: Test Astronomy Engine Windows
if: startsWith(matrix.os, 'windows')
shell: cmd
run: call generate\commit_hook.bat