-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (30 loc) · 1008 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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