-
Notifications
You must be signed in to change notification settings - Fork 43
65 lines (63 loc) · 1.83 KB
/
Copy pathgenExamples.yml
File metadata and controls
65 lines (63 loc) · 1.83 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Update examples.json
on:
workflow_dispatch:
inputs:
develop:
description: "Test with develop branch"
required: false
type: boolean
arm_toolchain_version:
description: "ARM toolchain version"
required: false
type: string
default: "default"
riscv_toolchain_version:
description: "RISC-V toolchain version"
required: false
type: string
default: "default"
examples_branch:
description: "Override Pico Examples branch"
required: false
type: string
default: "default"
fork_name:
description: "Set Pico Examples fork"
required: false
type: string
default: "default"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Install Dependencies
run: |
pip install pycryptodomex
- name: Cache ~/.pico-sdk
uses: actions/cache@v6
with:
path: ~/.pico-sdk
key: pico-sdk-${{ hashFiles('scripts/genExamples.py') }}
- name: Run genExamples.py
env:
SDK_VERSION: ${{ inputs.develop && '2.3-develop' || 'default' }}
ARM_TOOLCHAIN_VERSION: ${{ inputs.arm_toolchain_version }}
RISCV_TOOLCHAIN_VERSION: ${{ inputs.riscv_toolchain_version }}
EXAMPLES_BRANCH: ${{ inputs.examples_branch }}
FORK_NAME: ${{ inputs.fork_name }}
run: |
python scripts/genExamples.py
- name: List errors
run: |
ls -la errors-pico* || true
- name: Upload Artifact
uses: actions/upload-artifact@v7
with:
name: examples.json
path: |
data/0.18.0/examples.json
- name: Print diff
run: |
git diff data/0.18.0/examples.json