Skip to content

Commit

Permalink
Enforce C format check in GH Actions (#105)
Browse files Browse the repository at this point in the history
* Enforce C format check in GH Actions

* fix format
  • Loading branch information
Isaac Brodsky authored Aug 18, 2022
1 parent 28d5245 commit 8dd2cdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Tests
run: mvn "-Dh3.system.prune=true" -B -V clean test site

- name: Format check for C
run: git diff --exit-code

tests-new-dockcross:
name: Dockcross ${{ matrix.dockcross-tag }} Java ${{ matrix.java-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 2 additions & 3 deletions src/main/c/h3-java/src/jniapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,8 @@ Java_com_uber_h3core_NativeMethods_greatCircleDistanceM(
* Method: edgeLengthRads
* Signature: (J)D
*/
JNIEXPORT jdouble JNICALL
Java_com_uber_h3core_NativeMethods_edgeLengthRads(JNIEnv *env,
jobject thiz, jlong h3) {
JNIEXPORT jdouble JNICALL Java_com_uber_h3core_NativeMethods_edgeLengthRads(
JNIEnv *env, jobject thiz, jlong h3) {
jdouble out;
H3Error err = edgeLengthRads(h3, &out);
if (err) {
Expand Down

0 comments on commit 8dd2cdb

Please sign in to comment.