misc/github: Update workflows.

* Update workflow runner image.
* Install Python for main build.
* Install Vela compiler.
This commit is contained in:
iabdalkader 2024-07-23 00:27:59 +03:00
parent d7042349b5
commit b552388d49
5 changed files with 18 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -17,7 +17,7 @@ on:
jobs:
formatting-check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:

View File

@ -1,2 +1,3 @@
flake8==6.0.0
pytest==7.4.0
ethos-u-vela==3.12.0