Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamix examples #1503

Merged
merged 21 commits into from
Aug 22, 2024
49 changes: 49 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Examples

on:
pull_request:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:

env:
CARGO_INCREMENTAL: false

jobs:
examples:
runs-on: ubuntu-latest
outputs:
examples: ${{steps.set-matrix.outputs.examples}}

steps:
- uses: actions/checkout@v2
- id: set-matrix
run: |
echo examples=`find examples -name ci.sh | cut -d/ -f 2 | jq -Rsc '. / "\n" - [""]'` >> "$GITHUB_OUTPUT"

example:
name: ${{ matrix.ex }}
runs-on: ubuntu-latest
needs: examples
strategy:
fail-fast: false
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: |
cd examples/${{matrix.ex}}
./ci.sh
39 changes: 0 additions & 39 deletions .github/workflows/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,45 +162,6 @@ jobs:
AWS_EC2_METADATA_DISABLED: true
run: .travis/cli-tests.sh

examples:
runs-on: ubuntu-latest

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'
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

# - 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

# - name: Stop sccache server
# run: sccache --stop-server || true

onnx-tests:
runs-on: ubuntu-latest
strategy:
Expand Down
Empty file modified examples/nnef-dump-mobilenet-v2/ci.sh
100644 → 100755
Empty file.
Empty file modified examples/nnef-mobilenet-v2/ci.sh
100644 → 100755
Empty file.
Empty file modified examples/onnx-mobilenet-v2/ci.sh
100644 → 100755
Empty file.
Empty file modified examples/tensorflow-mobilenet-v2/ci.sh
100644 → 100755
Empty file.
Loading