Skip to content

Commit 2faad42

Browse files
committed
update ci
- remove submodules init - pre-commit: forbid new submodule, run in ci
1 parent 323a56e commit 2faad42

File tree

9 files changed

+10
-29
lines changed

9 files changed

+10
-29
lines changed

.github/workflows/build_aarch64.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
- name: Checkout TinyUSB
4343
uses: actions/checkout@v3
4444

45-
- name: Checkout common submodules in lib
46-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
47-
4845
- name: Checkout hathach/linkermap
4946
uses: actions/checkout@v3
5047
with:

.github/workflows/build_arm.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ jobs:
6565
- name: Checkout TinyUSB
6666
uses: actions/checkout@v3
6767

68-
- name: Checkout common submodules in lib
69-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
70-
7168
- name: Checkout hathach/linkermap
7269
uses: actions/checkout@v3
7370
with:
@@ -145,9 +142,6 @@ jobs:
145142
- name: Checkout TinyUSB
146143
uses: actions/checkout@v3
147144

148-
- name: Checkout common submodules in lib
149-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
150-
151145
- name: Build
152146
run: python3 tools/build_board.py ${{ matrix.example }}
153147

@@ -275,4 +269,4 @@ jobs:
275269
- name: Test dfu_runtime
276270
run: |
277271
./flash.sh dfu_runtime.elf
278-
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done
272+
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done

.github/workflows/build_iar.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
family:
3131
# Alphabetical order
3232
# Note: bundle multiple families into a matrix since there is only one self-hosted instance can
33-
# run IAR build. Too many matrix can hurt due to setup/teardown overhead.
33+
# run IAR build. Too many matrix can hurt due to setup/teardown overhead.
3434
- 'stm32f0 stm32f1 stm32f4 stm32f7 stm32g4 stm32h7 stm32l4'
3535
steps:
3636
- name: Clean workspace
@@ -42,10 +42,8 @@ jobs:
4242
- name: Checkout TinyUSB
4343
uses: actions/checkout@v3
4444

45-
- name: Checkout submodules and dependencies
46-
run: |
47-
git submodule update --init lib/FreeRTOS-Kernel lib/lwip
48-
python3 tools/get_family_deps.py ${{ matrix.family }}
45+
- name: Get Dependencies
46+
run: python3 tools/get_family_deps.py ${{ matrix.family }}
4947

5048
- name: Build
5149
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm

.github/workflows/build_msp430.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2222
cancel-in-progress: true
2323

24-
jobs:
24+
jobs:
2525
build-msp430:
2626
runs-on: ubuntu-latest
2727
strategy:
@@ -40,9 +40,6 @@ jobs:
4040
- name: Checkout TinyUSB
4141
uses: actions/checkout@v3
4242

43-
- name: Checkout common submodules in lib
44-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
45-
4643
- name: Checkout hathach/linkermap
4744
uses: actions/checkout@v3
4845
with:

.github/workflows/build_renesas.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
- name: Checkout TinyUSB
4040
uses: actions/checkout@v3
4141

42-
- name: Checkout common submodules in lib
43-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
44-
4542
- name: Checkout hathach/linkermap
4643
uses: actions/checkout@v3
4744
with:

.github/workflows/build_riscv.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ jobs:
4141
- name: Checkout TinyUSB
4242
uses: actions/checkout@v3
4343

44-
- name: Checkout common submodules in lib
45-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
46-
4744
- name: Checkout hathach/linkermap
4845
uses: actions/checkout@v3
4946
with:

.github/workflows/build_win_mac.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ jobs:
4646
- name: Checkout TinyUSB
4747
uses: actions/checkout@v3
4848

49-
- name: Checkout common submodules in lib
50-
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
51-
5249
- name: Get Dependencies
5350
run: python3 tools/get_family_deps.py stm32f4
5451

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: Checkout TinyUSB
2727
uses: actions/checkout@v3
2828

29+
- name: Run pre-commit
30+
uses: pre-commit/[email protected]
31+
2932
- name: Run codespell
3033
uses: codespell-project/actions-codespell@master
3134

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.0.1
7+
rev: v4.4.0
88
hooks:
99
- id: check-yaml
1010
- id: trailing-whitespace
1111
- id: end-of-file-fixer
12+
- id: forbid-submodules
1213

1314
- repo: local
1415
hooks:

0 commit comments

Comments
 (0)