update ci

- remove submodules init
- pre-commit: forbid new submodule, run in ci
This commit is contained in:
hathach 2023-03-17 15:54:25 +07:00
parent 323a56e309
commit 2faad42cb1
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
9 changed files with 10 additions and 29 deletions

View File

@ -42,9 +42,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Checkout hathach/linkermap - name: Checkout hathach/linkermap
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:

View File

@ -65,9 +65,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Checkout hathach/linkermap - name: Checkout hathach/linkermap
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
@ -145,9 +142,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Build - name: Build
run: python3 tools/build_board.py ${{ matrix.example }} run: python3 tools/build_board.py ${{ matrix.example }}
@ -275,4 +269,4 @@ jobs:
- name: Test dfu_runtime - name: Test dfu_runtime
run: | run: |
./flash.sh dfu_runtime.elf ./flash.sh dfu_runtime.elf
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done

View File

@ -30,7 +30,7 @@ jobs:
family: family:
# Alphabetical order # Alphabetical order
# Note: bundle multiple families into a matrix since there is only one self-hosted instance can # Note: bundle multiple families into a matrix since there is only one self-hosted instance can
# run IAR build. Too many matrix can hurt due to setup/teardown overhead. # run IAR build. Too many matrix can hurt due to setup/teardown overhead.
- 'stm32f0 stm32f1 stm32f4 stm32f7 stm32g4 stm32h7 stm32l4' - 'stm32f0 stm32f1 stm32f4 stm32f7 stm32g4 stm32h7 stm32l4'
steps: steps:
- name: Clean workspace - name: Clean workspace
@ -42,10 +42,8 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout submodules and dependencies - name: Get Dependencies
run: | run: python3 tools/get_family_deps.py ${{ matrix.family }}
git submodule update --init lib/FreeRTOS-Kernel lib/lwip
python3 tools/get_family_deps.py ${{ matrix.family }}
- name: Build - name: Build
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm

View File

@ -21,7 +21,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build-msp430: build-msp430:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@ -40,9 +40,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Checkout hathach/linkermap - name: Checkout hathach/linkermap
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:

View File

@ -39,9 +39,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Checkout hathach/linkermap - name: Checkout hathach/linkermap
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:

View File

@ -41,9 +41,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Checkout hathach/linkermap - name: Checkout hathach/linkermap
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:

View File

@ -46,9 +46,6 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout common submodules in lib
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
- name: Get Dependencies - name: Get Dependencies
run: python3 tools/get_family_deps.py stm32f4 run: python3 tools/get_family_deps.py stm32f4

View File

@ -26,6 +26,9 @@ jobs:
- name: Checkout TinyUSB - name: Checkout TinyUSB
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
- name: Run codespell - name: Run codespell
uses: codespell-project/actions-codespell@master uses: codespell-project/actions-codespell@master

View File

@ -4,11 +4,12 @@
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 rev: v4.4.0
hooks: hooks:
- id: check-yaml - id: check-yaml
- id: trailing-whitespace - id: trailing-whitespace
- id: end-of-file-fixer - id: end-of-file-fixer
- id: forbid-submodules
- repo: local - repo: local
hooks: hooks: