mirror of
https://github.com/micropython/micropython.git
synced 2025-12-15 17:30:14 +01:00
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/cache dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
69 lines
2.0 KiB
YAML
69 lines
2.0 KiB
YAML
name: zephyr port
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/ports_zephyr.yml'
|
|
- 'tools/**'
|
|
- 'py/**'
|
|
- 'extmod/**'
|
|
- 'shared/**'
|
|
- 'lib/**'
|
|
- 'ports/zephyr/**'
|
|
- 'tests/**'
|
|
schedule:
|
|
# Scheduled run exists to keep master branch Zephyr cache entry hot
|
|
# and prevent creating many redundant per-branch cache entries instead.
|
|
- cron: "40 4 * * *"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: jlumbroso/free-disk-space@main
|
|
with:
|
|
# Only free up a few things so this step runs quickly.
|
|
# (android would save 9.6GiB, but takes about 13m)
|
|
# (large-packages would save 4.6GiB, but takes about 3m)
|
|
android: false
|
|
dotnet: true
|
|
haskell: true
|
|
large-packages: false
|
|
docker-images: false
|
|
tool-cache: true
|
|
swap-storage: false
|
|
- uses: actions/checkout@v6
|
|
- id: versions
|
|
name: Read Zephyr version
|
|
run: source tools/ci.sh && echo "ZEPHYR=$ZEPHYR_VERSION" | tee "$GITHUB_OUTPUT"
|
|
- name: Cached Zephyr Workspace
|
|
id: cache_workspace
|
|
uses: actions/cache@v5
|
|
with:
|
|
# note that the Zephyr CI docker image is 15GB. At time of writing
|
|
# GitHub caches are limited to 10GB total for a project. So we only
|
|
# cache the "workspace"
|
|
path: ./zephyrproject
|
|
key: zephyr-workspace-${{ steps.versions.outputs.ZEPHYR }}
|
|
- name: ccache
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
|
with:
|
|
key: zephyr
|
|
- name: Install packages
|
|
run: tools/ci.sh zephyr_setup
|
|
- name: Install Zephyr
|
|
if: steps.cache_workspace.outputs.cache-hit != 'true'
|
|
run: tools/ci.sh zephyr_install
|
|
- name: Build
|
|
run: tools/ci.sh zephyr_build
|
|
- name: Run main test suite
|
|
run: tools/ci.sh zephyr_run_tests
|
|
- name: Print failures
|
|
if: failure()
|
|
run: tests/run-tests.py --print-failures
|