From 72bc31bff75aef774e55d273b65c8e4dff0e1198 Mon Sep 17 00:00:00 2001 From: cianciosa Date: Mon, 20 Nov 2023 13:47:36 -0500 Subject: [PATCH] Enable parallel test and fix missing include in C code. --- .github/workflows/ci_test.yaml | 10 ++++++++-- .github/workflows/ci_test_master.yaml | 10 ++++++++-- Sources/C/copy_file.c | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci_test.yaml b/.github/workflows/ci_test.yaml index 774b49c..da6829f 100644 --- a/.github/workflows/ci_test.yaml +++ b/.github/workflows/ci_test.yaml @@ -55,10 +55,16 @@ jobs: shell: bash working-directory: ${{runner.workspace}}/Stellarator-Tools/build run: make -j VERBOSE=1 - - name: Test + - name: Test Mac + if: ${{matrix.os == 'macos-latest'}} + shell: bash + working-directory: ${{runner.workspace}}/Stellarator-Tools/build + run: make test ARGS=-j3 + - name: Test Linux + if: ${{matrix.os == 'ubuntu-latest'}} shell: bash working-directory: ${{runner.workspace}}/Stellarator-Tools/build - run: make test + run: make test ARGS=-j2 - name: Show Log if: failure() shell: bash diff --git a/.github/workflows/ci_test_master.yaml b/.github/workflows/ci_test_master.yaml index 97f8862..70389cc 100644 --- a/.github/workflows/ci_test_master.yaml +++ b/.github/workflows/ci_test_master.yaml @@ -55,10 +55,16 @@ jobs: shell: bash working-directory: ${{runner.workspace}}/Stellarator-Tools/build run: make -j VERBOSE=1 - - name: Test + - name: Test Mac + if: ${{matrix.os == 'macos-latest'}} + shell: bash + working-directory: ${{runner.workspace}}/Stellarator-Tools/build + run: make test ARGS=-j3 + - name: Test Linux + if: ${{matrix.os == 'ubuntu-latest'}} shell: bash working-directory: ${{runner.workspace}}/Stellarator-Tools/build - run: make test + run: make test ARGS=-j2 - name: Show Log if: failure() shell: bash diff --git a/Sources/C/copy_file.c b/Sources/C/copy_file.c index c897f57..f94a907 100644 --- a/Sources/C/copy_file.c +++ b/Sources/C/copy_file.c @@ -15,6 +15,7 @@ #include #include #include +#include /// Flag to copy the enture file. #define COPYFILE_ALL 0