Skip to content

Commit

Permalink
Undefined jd_tt in example, and workflow to check example compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Mar 25, 2024
1 parent d6d55be commit 24b1e04
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Example

on:
push:
paths:
- 'examples/**'
- '.github/workflows/example.yml'

jobs:

build:
name: Build library

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Compile example.c
run: |
cd examples
gcc -c -Wall -Werror -I ../include example.c
1 change: 1 addition & 0 deletions examples/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ int main(void) {

// Establish time arguments.
jd_utc = julian_date(2008, 4, 24, 10.605);
jd_tt = jd_utc + ((double) leap_secs + 32.184) / 86400.0;
jd_ut1 = jd_utc + ut1_utc / 86400.0;
delta_t = get_ut1_to_tt(leap_secs, ut1_utc);

Expand Down

0 comments on commit 24b1e04

Please sign in to comment.