Skip to content

Commit

Permalink
[nanokit] Set up GHA workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
xychen committed Sep 2, 2024
1 parent d507e28 commit 9f8756f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 194 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-22.04

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Arm GNU Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: 10.3-2021.10

- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'

- name: Install Python module
run: pip3 install --user -r requirements.txt

- name: Check versions
run: |
set -ex
echo $PATH
which arm-none-eabi-gcc
arm-none-eabi-gcc --version
which cmake
cmake --version
which ninja
ninja --version
which python
python --version
- name: Compile
run: |
python tools/progen_compile.py -t cmake_gcc_arm -g ninja stm32f103xb_csk6_nanokit_bl stm32f103xb_csk6_nanokit_if
cp projectfiles/make_gcc_arm/*/build/*_if_crc.{bin,hex} .
- name: Upload test artifacts
uses: actions/upload-artifact@v4
with:
name: firmware
path: |
*.bin
*.hex
79 changes: 0 additions & 79 deletions .github/workflows/linux.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/pr.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/windows.yml

This file was deleted.

0 comments on commit 9f8756f

Please sign in to comment.