From 73306f6ee18a9a847012bb7c379d7b1598e510ea Mon Sep 17 00:00:00 2001 From: Adam Gibson <1144306+agibsonccc@users.noreply.github.com> Date: Thu, 18 Mar 2021 20:20:12 +0900 Subject: [PATCH 1/2] Create run-cpu-integratino-tests-self-hosted.yml --- .../run-cpu-integratino-tests-self-hosted.yml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/run-cpu-integratino-tests-self-hosted.yml diff --git a/.github/workflows/run-cpu-integratino-tests-self-hosted.yml b/.github/workflows/run-cpu-integratino-tests-self-hosted.yml new file mode 100644 index 000000000..459f5f939 --- /dev/null +++ b/.github/workflows/run-cpu-integratino-tests-self-hosted.yml @@ -0,0 +1,46 @@ +on: + workflow_dispatch: +jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + run + + +on: + workflow_dispatch: +jobs: + # Wait for up to a minute for previous run to complete, abort if not done by then + pre-ci: + runs-on: self-hosted + timeout-minutes: 1 + steps: + - name: 'Block Concurrent Executions' + uses: softprops/turnstyle@v1 + with: + poll-interval-seconds: 10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + linux-x86_64: + needs: pre-ci + runs-on: [self-hosted] + steps: + - uses: AutoModality/action-clean@v1 + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.8.0 + with: + access_token: ${{ github.token }} + - uses: ./.github/actions/download-dl4j-test-resources-linux + - uses: actions/checkout@v2 + - name: Run cpu tests + shell: bash + env: + DEBIAN_FRONTEND: noninteractive + run: | + export PATH="/opt/protobuf/bin:/usr/local/cuda-11.2/bin:$PATH" + nvcc --version + mvn --version + cmake --version + protoc --version + export OMP_NUM_THREADS=1 + mvn -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pdl4j-integration-tests -Pnd4j-tests-cpu clean test + From c4de41028c8dbe8fab62395e86c046512da70775 Mon Sep 17 00:00:00 2001 From: Adam Gibson <1144306+agibsonccc@users.noreply.github.com> Date: Thu, 18 Mar 2021 20:22:25 +0900 Subject: [PATCH 2/2] Update and rename run-cpu-integratino-tests-self-hosted.yml to run-cpu-integration-tests-self-hosted.yml --- ...elf-hosted.yml => run-cpu-integration-tests-self-hosted.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{run-cpu-integratino-tests-self-hosted.yml => run-cpu-integration-tests-self-hosted.yml} (98%) diff --git a/.github/workflows/run-cpu-integratino-tests-self-hosted.yml b/.github/workflows/run-cpu-integration-tests-self-hosted.yml similarity index 98% rename from .github/workflows/run-cpu-integratino-tests-self-hosted.yml rename to .github/workflows/run-cpu-integration-tests-self-hosted.yml index 459f5f939..7e810376e 100644 --- a/.github/workflows/run-cpu-integratino-tests-self-hosted.yml +++ b/.github/workflows/run-cpu-integration-tests-self-hosted.yml @@ -42,5 +42,5 @@ jobs: cmake --version protoc --version export OMP_NUM_THREADS=1 - mvn -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pdl4j-integration-tests -Pnd4j-tests-cpu clean test + mvn -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pdl4j-integration-tests -Pnd4j-tests-cpu clean test