mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
misc/github: Update workflows.
* Update workflow runner image. * Install Python for main build. * Install Vela compiler.
This commit is contained in:
parent
d7042349b5
commit
b552388d49
2
.github/workflows/codeformat.yml
vendored
2
.github/workflows/codeformat.yml
vendored
@ -20,7 +20,7 @@ on:
|
||||
|
||||
jobs:
|
||||
formatting-check:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: '⏳ Checkout repository'
|
||||
uses: actions/checkout@v4
|
||||
|
||||
2
.github/workflows/commit.yml
vendored
2
.github/workflows/commit.yml
vendored
@ -12,7 +12,7 @@ on:
|
||||
|
||||
jobs:
|
||||
check-commit-messages:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: '📜 Check commit messages format'
|
||||
uses: gsactions/commit-message-checker@v2
|
||||
|
||||
17
.github/workflows/firmware.yml
vendored
17
.github/workflows/firmware.yml
vendored
@ -25,7 +25,7 @@ on:
|
||||
|
||||
jobs:
|
||||
build-firmware:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
target: [OPENMV2, OPENMV3, OPENMV4, OPENMV4P, OPENMVPT, OPENMV_RT1060, ARDUINO_PORTENTA_H7, ARDUINO_GIGA, ARDUINO_NICLA_VISION, ARDUINO_NANO_RP2040_CONNECT, ARDUINO_NANO_33_BLE_SENSE]
|
||||
@ -46,6 +46,17 @@ jobs:
|
||||
path: ~/cache/gcc
|
||||
key: 'arm-gnu-toolchain-13.2.rel1'
|
||||
|
||||
- name: '🐍 Install Python'
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
cache: 'pip'
|
||||
python-version: "3.12.4"
|
||||
|
||||
- name: '🛠 Install Vela'
|
||||
run: |
|
||||
pip install ethos-u-vela==3.12.0
|
||||
vela --version
|
||||
|
||||
- name: '🛠 Install toolchain '
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: source tools/ci.sh && ci_install_arm_gcc
|
||||
@ -63,7 +74,7 @@ jobs:
|
||||
|
||||
stable-release:
|
||||
needs: build-firmware
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
steps:
|
||||
- name: '⏳ Checkout repository'
|
||||
@ -105,7 +116,7 @@ jobs:
|
||||
|
||||
development-release:
|
||||
needs: build-firmware
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') == false
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
2
.github/workflows/python-linter.yml
vendored
2
.github/workflows/python-linter.yml
vendored
@ -17,7 +17,7 @@ on:
|
||||
|
||||
jobs:
|
||||
formatting-check:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
1
.github/workflows/requirements.txt
vendored
1
.github/workflows/requirements.txt
vendored
@ -1,2 +1,3 @@
|
||||
flake8==6.0.0
|
||||
pytest==7.4.0
|
||||
ethos-u-vela==3.12.0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user