-
Notifications
You must be signed in to change notification settings - Fork 43
50 lines (46 loc) · 1.23 KB
/
github_actions_build.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
49
50
# Shameless copy of @AlastairUK's fine work for the jpl_eph repo.
# Aside from the comment, this is almost a byte-for-byte copy.
name: Build
on: [push, pull_request]
jobs:
buildUbuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: make
run: |
git clone https://github.com/Bill-Gray/lunar
cd lunar
make ERRORS=Y liblunar.a
make install
cd ..
make ERRORS=Y
buildOSX:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: make
run: |
git clone https://github.com/Bill-Gray/lunar
cd lunar
make CC=clang ERRORS=Y liblunar.a
make install
cd ..
make CC=clang ERRORS=Y
buildWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: make
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
git clone https://github.com/Bill-Gray/lunar
mkdir myincl
cd lunar
nmake -f lunar.mak lunar64.lib
nmake -f lunar.mak install
cd ..
set CL=/I"./myincl"
copy lunar\*.lib .
nmake -f msvc.mak
shell: cmd