Skip to content

.github/workflows/build.yml #524

.github/workflows/build.yml

.github/workflows/build.yml #524

Workflow file for this run

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 18 * * *'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Build docker image
run: docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t microvisor-hal-stm32u5-image .
- name: Build code
run: docker run --rm -v $(pwd)/:/home/ --name microvisor-hal-stm32u5-lib microvisor-hal-stm32u5-image
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: microvisor-hal-stm32u5
path: |
${{ github.workspace }}/build/libMicrovisor-HAL-STM32U5.*
${{ github.workspace }}/mv_bitops.h
${{ github.workspace }}/Drivers/STM32U5xx_HAL_Driver/Inc
${{ github.workspace }}/Drivers/CMSIS/Device/ST/STM32U5xx/Include
${{ github.workspace }}/Drivers/CMSIS/Include
if-no-files-found: error