-
Notifications
You must be signed in to change notification settings - Fork 215
50 lines (42 loc) · 1.13 KB
/
examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Examples
on:
pull_request:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
env:
CARGO_INCREMENTAL: false
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
jobs:
examples:
runs-on: ubuntu-latest
outputs:
examples: ${{steps.set-matrix.outputs.examples}}
steps:
- uses: actions/checkout@v4
- 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@v4
- 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