feat: remove python dependency for a build script (#173) #31
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-tags: true | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: 'pip' # caching pip dependencies | |
- run: pip install -r src/requirements.txt | |
- name: Set git meta info | |
run: echo "GITHUB_CI_PR_SHA=${{github.event.pull_request.head.sha}}" >> "${GITHUB_ENV}" && echo "GITHUB_CI_CD=1" >> "${GITHUB_ENV}" | |
- name: Install standalone reference GCC toolchain | |
run: bash scripts/env.sh | |
- name: Build hydrafw | |
run: source build.env && arm-none-eabi-gcc --version && arm-none-eabi-gcc -print-search-dirs && make V=1 -j$(nproc) -C src/ | |
- name: Archive hydrafw artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: hydrafw | |
path: | | |
src/build/hydrafw.dfu | |
if-no-files-found: error | |