From d2a2dac7ed814504c4bbb0837f5ae2b3a3a4d163 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 13:57:25 +0200 Subject: [PATCH 01/21] dynamix examples --- .github/workflows/full.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index ab5f65b501..7e8c3d44b0 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -165,6 +165,19 @@ jobs: examples: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - id: set-matrix + run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]')" + + example: + name: Example: ${{ matrix.ex }} + runs-on: ubuntu-latest + needs: examples + strategy: + matrix: + ex: ${{fromJSON(needs.examples.outputs.matrix)}} + steps: - uses: actions/checkout@v3 - name: Get current date @@ -179,27 +192,11 @@ jobs: role-to-assume: arn:aws:iam::567805100031:role/github-runner-tract-ci aws-region: us-east-2 - # - uses: actions/cache@v3 - # with: - # path: | - # ~/.rustup - # ~/.cargo/registry - # ~/.cargo/git - # # ~/.cache/sccache - # target - # .cached - # key: ${{ runner.os }}-full-regular-${{steps.date.outputs.date}}-e - - # # - name: "Setup sccache" - # # run: .travis/setup-sccache.sh - - name: example tests env: AWS_EC2_METADATA_DISABLED: true - run: .travis/examples.sh + run: examples/${{matrix.ex}}/ci.sh - # - name: Stop sccache server - # run: sccache --stop-server || true onnx-tests: runs-on: ubuntu-latest From 139c48f11f0fa655393b4d8a6a500c5d446660db Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 14:01:21 +0200 Subject: [PATCH 02/21] struggling with escaping --- .github/workflows/full.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 7e8c3d44b0..55ad2654b4 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -168,7 +168,8 @@ jobs: steps: - uses: actions/checkout@v2 - id: set-matrix - run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]')" + run: | + echo ::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]') example: name: Example: ${{ matrix.ex }} From 55e2232b3057effa837e1822acd71bf94be0f19a Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 14:38:41 +0200 Subject: [PATCH 03/21] try again --- .github/workflows/full.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 55ad2654b4..645ae37bf0 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -168,8 +168,7 @@ jobs: steps: - uses: actions/checkout@v2 - id: set-matrix - run: | - echo ::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]') + run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" example: name: Example: ${{ matrix.ex }} From 821117b9f394f58e9d8a509dd23090517eeb8b6e Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 14:45:20 +0200 Subject: [PATCH 04/21] try again --- .github/workflows/full.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 645ae37bf0..aaa530b9e1 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -168,7 +168,8 @@ jobs: steps: - uses: actions/checkout@v2 - id: set-matrix - run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" + # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" + run: echo ::set-output name=matrix::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] example: name: Example: ${{ matrix.ex }} From 1f7474447771ca5952d8daa58ca34599fd20589b Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 14:46:34 +0200 Subject: [PATCH 05/21] try again --- .github/workflows/full.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index aaa530b9e1..0978c223a7 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -172,7 +172,7 @@ jobs: run: echo ::set-output name=matrix::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] example: - name: Example: ${{ matrix.ex }} + name: "Example: ${{ matrix.ex }}" runs-on: ubuntu-latest needs: examples strategy: From 86fd06501f410356bdb4a2b0f6072cb3b2737cb6 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 14:56:34 +0200 Subject: [PATCH 06/21] try again --- .github/workflows/full.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 0978c223a7..458905831a 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -168,22 +168,19 @@ jobs: steps: - uses: actions/checkout@v2 - id: set-matrix - # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" - run: echo ::set-output name=matrix::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] + # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" + run: echo ::set-output name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] example: - name: "Example: ${{ matrix.ex }}" + name: ${{ matrix.ex }} runs-on: ubuntu-latest needs: examples strategy: matrix: - ex: ${{fromJSON(needs.examples.outputs.matrix)}} + ex: ${{fromJSON(needs.examples.outputs.examples)}} steps: - uses: actions/checkout@v3 - - name: Get current date - id: date - run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - name: Configure AWS Credentials # if: github.repository == 'sonos/tract' From 18ef45a07071f99d5205be88403fc917598bf228 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:00:58 +0200 Subject: [PATCH 07/21] split examples --- .github/workflows/examples.yml | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/examples.yml diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 0000000000..6c7ae99aa3 --- /dev/null +++ b/.github/workflows/examples.yml @@ -0,0 +1,44 @@ +name: Examples + +on: + pull_request: + schedule: + - cron: '0 3 * * *' + workflow_dispatch: + +env: + CARGO_INCREMENTAL: false + +jobs: + examples: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - id: set-matrix + # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" + run: echo ::set-output name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] + + example: + name: ${{ matrix.ex }} + runs-on: ubuntu-latest + needs: examples + strategy: + matrix: + ex: ${{fromJSON(needs.examples.outputs.examples)}} + + steps: + - uses: actions/checkout@v3 + + - name: Configure AWS Credentials + # if: github.repository == 'sonos/tract' + continue-on-error: true + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::567805100031:role/github-runner-tract-ci + aws-region: us-east-2 + + - name: example tests + env: + AWS_EC2_METADATA_DISABLED: true + run: examples/${{matrix.ex}}/ci.sh From bae3a0d8bbbcdb00b49e19e80568b228341310d2 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:05:23 +0200 Subject: [PATCH 08/21] try again --- .github/workflows/examples.yml | 7 +++++++ .github/workflows/full.yml | 34 ---------------------------------- 2 files changed, 7 insertions(+), 34 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 6c7ae99aa3..6eb40912ce 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -19,6 +19,13 @@ jobs: # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" run: echo ::set-output name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] + debug: + needs: examples + runs-on: ubuntu-latest + + steps: + run: echo ${{needs.examples}} + example: name: ${{ matrix.ex }} runs-on: ubuntu-latest diff --git a/.github/workflows/full.yml b/.github/workflows/full.yml index 458905831a..21a9f7b9f2 100644 --- a/.github/workflows/full.yml +++ b/.github/workflows/full.yml @@ -162,40 +162,6 @@ jobs: AWS_EC2_METADATA_DISABLED: true run: .travis/cli-tests.sh - examples: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - id: set-matrix - # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" - run: echo ::set-output name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] - - example: - name: ${{ matrix.ex }} - runs-on: ubuntu-latest - needs: examples - strategy: - matrix: - ex: ${{fromJSON(needs.examples.outputs.examples)}} - - steps: - - uses: actions/checkout@v3 - - - name: Configure AWS Credentials - # if: github.repository == 'sonos/tract' - continue-on-error: true - uses: aws-actions/configure-aws-credentials@v4 - with: - role-to-assume: arn:aws:iam::567805100031:role/github-runner-tract-ci - aws-region: us-east-2 - - - name: example tests - env: - AWS_EC2_METADATA_DISABLED: true - run: examples/${{matrix.ex}}/ci.sh - - onnx-tests: runs-on: ubuntu-latest strategy: From ae5185815ae0dade7c581f7490b7a466331f1acf Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:06:49 +0200 Subject: [PATCH 09/21] try again --- .github/workflows/examples.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 6eb40912ce..232939f270 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -22,9 +22,8 @@ jobs: debug: needs: examples runs-on: ubuntu-latest - steps: - run: echo ${{needs.examples}} + - run: echo ${{needs.examples}} example: name: ${{ matrix.ex }} From 7225ae46b77837fe500772439440433d70dc3041 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:08:18 +0200 Subject: [PATCH 10/21] try again --- .github/workflows/examples.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 232939f270..1394d17915 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -23,7 +23,8 @@ jobs: needs: examples runs-on: ubuntu-latest steps: - - run: echo ${{needs.examples}} + - run: echo ${{needs.examples.outputs.examples}} + - run: echo ${{fromJSON(needs.examples.outputs.examples)}} example: name: ${{ matrix.ex }} From 06c8309b332563a962bf435edf37779397a5b3ac Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:11:19 +0200 Subject: [PATCH 11/21] try again --- .github/workflows/examples.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1394d17915..6263fbe593 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -17,14 +17,14 @@ jobs: - uses: actions/checkout@v2 - id: set-matrix # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" - run: echo ::set-output name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] + run: echo name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> $GITHUB_OUTPUT debug: needs: examples runs-on: ubuntu-latest steps: - - run: echo ${{needs.examples.outputs.examples}} - - run: echo ${{fromJSON(needs.examples.outputs.examples)}} + - run: echo "${{steps.examples.outputs.examples}}" + - run: echo ${{fromJSON(steps.examples.outputs.examples)}} example: name: ${{ matrix.ex }} From e78f6dbef674b4897ee545c77bfe236751221c09 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:12:40 +0200 Subject: [PATCH 12/21] try again --- .github/workflows/examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 6263fbe593..32f14421c3 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v2 - id: set-matrix # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" - run: echo name=examples::["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> $GITHUB_OUTPUT + run: echo examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> $GITHUB_OUTPUT debug: needs: examples From afe8aff25fc92cbd88eec5ace952d9faafc10e8a Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:14:39 +0200 Subject: [PATCH 13/21] try again --- .github/workflows/examples.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 32f14421c3..3685c3270c 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -17,14 +17,17 @@ jobs: - uses: actions/checkout@v2 - id: set-matrix # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" - run: echo examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> $GITHUB_OUTPUT + run: | + echo examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> "$GITHUB_OUTPUT" debug: needs: examples runs-on: ubuntu-latest steps: - - run: echo "${{steps.examples.outputs.examples}}" - - run: echo ${{fromJSON(steps.examples.outputs.examples)}} + - run: | + echo "${{steps.examples.outputs.examples}}" + - run: | + echo "${{fromJSON(steps.examples.outputs.examples)}}" example: name: ${{ matrix.ex }} From 7828f1a36c07b2ec07c45434ff34778e289324d6 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:16:28 +0200 Subject: [PATCH 14/21] try again --- .github/workflows/examples.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 3685c3270c..f95c800a2d 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -19,11 +19,14 @@ jobs: # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" run: | echo examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> "$GITHUB_OUTPUT" + echo "foo=bar" >> "$GITHUB_OUTPUT" debug: needs: examples runs-on: ubuntu-latest steps: + - run: | + echo "${{steps.examples.outputs.foo}}" - run: | echo "${{steps.examples.outputs.examples}}" - run: | From 2f82e568b32daa91d89f4e995ad49799846f50ca Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:20:41 +0200 Subject: [PATCH 15/21] try again --- .github/workflows/examples.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f95c800a2d..c48baf5c80 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -12,6 +12,9 @@ env: jobs: examples: runs-on: ubuntu-latest + outputs: + foo: ${{steps.set-matrix.outputs.foo}} + examples: ${{steps.set-matrix.outputs.examples}} steps: - uses: actions/checkout@v2 @@ -26,7 +29,7 @@ jobs: runs-on: ubuntu-latest steps: - run: | - echo "${{steps.examples.outputs.foo}}" + echo "${{needs.examples.outputs.foo}}" - run: | echo "${{steps.examples.outputs.examples}}" - run: | From 473d727b4b40c480115e225529b81df31461272a Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:21:33 +0200 Subject: [PATCH 16/21] try again --- .github/workflows/examples.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index c48baf5c80..47bedb72fa 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -31,9 +31,9 @@ jobs: - run: | echo "${{needs.examples.outputs.foo}}" - run: | - echo "${{steps.examples.outputs.examples}}" + echo "${{needs.examples.outputs.examples}}" - run: | - echo "${{fromJSON(steps.examples.outputs.examples)}}" + echo "${{fromJSON(needs.examples.outputs.examples)}}" example: name: ${{ matrix.ex }} From d97eee509460a462f27abae52f2170d94854b098 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:22:52 +0200 Subject: [PATCH 17/21] try again --- .github/workflows/examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 47bedb72fa..f5b61211cc 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -21,7 +21,7 @@ jobs: - id: set-matrix # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" run: | - echo examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"] >> "$GITHUB_OUTPUT" + echo 'examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"]' >> "$GITHUB_OUTPUT" echo "foo=bar" >> "$GITHUB_OUTPUT" debug: From f130da0dc7019e6d9bc94fd4d09c8356c2e81b21 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:25:57 +0200 Subject: [PATCH 18/21] try again --- .github/workflows/examples.yml | 7 +------ examples/nnef-dump-mobilenet-v2/ci.sh | 0 examples/nnef-mobilenet-v2/ci.sh | 0 examples/onnx-mobilenet-v2/ci.sh | 0 examples/tensorflow-mobilenet-v2/ci.sh | 0 5 files changed, 1 insertion(+), 6 deletions(-) mode change 100644 => 100755 examples/nnef-dump-mobilenet-v2/ci.sh mode change 100644 => 100755 examples/nnef-mobilenet-v2/ci.sh mode change 100644 => 100755 examples/onnx-mobilenet-v2/ci.sh mode change 100644 => 100755 examples/tensorflow-mobilenet-v2/ci.sh diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f5b61211cc..36123e526e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -13,23 +13,18 @@ jobs: examples: runs-on: ubuntu-latest outputs: - foo: ${{steps.set-matrix.outputs.foo}} examples: ${{steps.set-matrix.outputs.examples}} steps: - uses: actions/checkout@v2 - id: set-matrix - # run: echo "::set-output name=matrix::$(find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]')" run: | - echo 'examples=["keras-tract-tf2","onnx-mobilenet-v2","tflite-mobilenet-v3","tensorflow-mobilenet-v2","pytorch-resnet","nnef-mobilenet-v2","nnef-dump-mobilenet-v2","pytorch-albert-v2","face_detection_yolov8onnx_example"]' >> "$GITHUB_OUTPUT" - echo "foo=bar" >> "$GITHUB_OUTPUT" + echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]'` >> "$GITHUB_OUTPUT" debug: needs: examples runs-on: ubuntu-latest steps: - - run: | - echo "${{needs.examples.outputs.foo}}" - run: | echo "${{needs.examples.outputs.examples}}" - run: | diff --git a/examples/nnef-dump-mobilenet-v2/ci.sh b/examples/nnef-dump-mobilenet-v2/ci.sh old mode 100644 new mode 100755 diff --git a/examples/nnef-mobilenet-v2/ci.sh b/examples/nnef-mobilenet-v2/ci.sh old mode 100644 new mode 100755 diff --git a/examples/onnx-mobilenet-v2/ci.sh b/examples/onnx-mobilenet-v2/ci.sh old mode 100644 new mode 100755 diff --git a/examples/tensorflow-mobilenet-v2/ci.sh b/examples/tensorflow-mobilenet-v2/ci.sh old mode 100644 new mode 100755 From 9a521572a32fbca478065713873b0c7a9d320e68 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:29:11 +0200 Subject: [PATCH 19/21] try again --- .github/workflows/examples.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 36123e526e..9a1a9ddc22 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - id: set-matrix run: | - echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / \"\n\" - [""]'` >> "$GITHUB_OUTPUT" + echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]') >> "$GITHUB_OUTPUT" debug: needs: examples @@ -35,6 +35,7 @@ jobs: runs-on: ubuntu-latest needs: examples strategy: + fail-fast: false matrix: ex: ${{fromJSON(needs.examples.outputs.examples)}} From 76704ee07a50311525387c0897bab9074f3a14ba Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:30:05 +0200 Subject: [PATCH 20/21] try again --- .github/workflows/examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 9a1a9ddc22..dccd96032a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - id: set-matrix run: | - echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]') >> "$GITHUB_OUTPUT" + echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]'` >> "$GITHUB_OUTPUT" debug: needs: examples From b5fc6922412a5aaea3e09866e904573212b8f232 Mon Sep 17 00:00:00 2001 From: Mathieu Poumeyrol Date: Thu, 22 Aug 2024 15:31:44 +0200 Subject: [PATCH 21/21] try again --- .github/workflows/examples.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index dccd96032a..10d1a4aa3e 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -21,15 +21,6 @@ jobs: run: | echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]'` >> "$GITHUB_OUTPUT" - debug: - needs: examples - runs-on: ubuntu-latest - steps: - - run: | - echo "${{needs.examples.outputs.examples}}" - - run: | - echo "${{fromJSON(needs.examples.outputs.examples)}}" - example: name: ${{ matrix.ex }} runs-on: ubuntu-latest @@ -53,4 +44,6 @@ jobs: - name: example tests env: AWS_EC2_METADATA_DISABLED: true - run: examples/${{matrix.ex}}/ci.sh + run: | + cd examples/${{matrix.ex}} + ./ci.sh