Add option to put absolute timestamps in dumpfile #317
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: build_device | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build ${{ matrix.device }} device, ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
device: ["F401", "F411", "F407"] | |
# test other OS for default device type | |
include: | |
- os: "macos-latest" | |
device: "F411" | |
- os: "windows-latest" | |
device: "F411" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- name: Install arduino-cli (windows) | |
if: "startsWith(runner.os, 'windows')" | |
run: | | |
choco install -y arduino-cli | |
- name: Install arduino-cli (mac, linux) | |
if: "!startsWith(runner.os, 'windows')" | |
run: | | |
# Note: the current step cannot access the updated path | |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh | |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
- name: Configure arduino-cli | |
run: | | |
arduino-cli version | |
arduino-cli config init | |
arduino-cli config add board_manager.additional_urls https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json | |
arduino-cli core update-index | |
arduino-cli core install STMicroelectronics:[email protected] | |
- name: Install python packages (mac, windows) | |
if: "!startsWith(runner.os, 'linux')" | |
run: | | |
pip3 install --break-system-packages pyyaml pathlib # required on MacOS/Windows runners | |
- name: Patch cdc_queue.h | |
shell: bash | |
run: | | |
REPO_ROOT=$PWD | |
STM32_DIR=$(python/get_arduino_stm32_directory.py) | |
echo "STM32_DIR = ${STM32_DIR}" | |
cd ${STM32_DIR}/cores/arduino/stm32/usb/cdc | |
patch < ${REPO_ROOT}/patch/cdc_queue.patch | |
cat cdc_queue.h | |
- name: Compile ${{ matrix.device }} device code | |
run: | | |
cd device | |
make device DEV=${{ matrix.device }} |