Update pycsp.c #299
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zephyr Build and Test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 10 * * 0' # Run it every Sunday 10am UTC | |
jobs: | |
build-zephyr: | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
board: | |
- scobc_module1 | |
- qemu_cortex_m3 | |
- mps2_an385 | |
python-version: | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Python version | |
run: | | |
python3 --version | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: libcsp-zephyr | |
repository: yashi/libcsp-zephyr | |
- name: Install yq | |
run: | | |
sudo apt-get install tree yq | |
- name: Update libcsp revision (Pull Req) | |
if: github.event_name == 'pull_request' | |
working-directory: libcsp-zephyr | |
run: | | |
yq -iy '(.manifest.projects[] | select(.name == "libcsp") | .revision) = "${{ github.event.pull_request.head.sha }}"' west.yml | |
git diff -w | |
- name: Update libcsp revision (Push) | |
if: github.event_name == 'push' | |
working-directory: libcsp-zephyr | |
run: | | |
yq -iy '(.manifest.projects[] | select(.name == "libcsp") | .revision) = "${{ github.sha }}"' west.yml | |
git diff -w | |
- name: Setup Zephyr | |
uses: zephyrproject-rtos/action-zephyr-setup@v1 | |
with: | |
app-path: libcsp-zephyr | |
toolchains: arm-zephyr-eabi | |
- name: Build | |
run: | | |
west build -b ${{ matrix.board }} libcsp-zephyr |