File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ submodules : true
20+ fetch-tags : true
21+ fetch-depth : 0
22+
23+ - uses : actions/setup-python@v5
24+ with :
25+ python-version : 3.12
26+ cache : ' pip' # caching pip dependencies
27+
28+ - run : pip install -r src/requirements.txt
29+
30+ - name : Set git meta info
31+ run : echo "GITHUB_CI_PR_SHA=${{github.event.pull_request.head.sha}}" >> "${GITHUB_ENV}" && echo "GITHUB_CI_CD=1" >> "${GITHUB_ENV}"
32+
33+ - name : Install standalone reference GCC toolchain
34+ run : bash scripts/env.sh
35+
36+ - name : Build src/build-scripts/hex2dfu
37+ run : cd src/build-scripts && make clean all
38+
39+ - name : Build hydrafw
40+ run : source build.env && arm-none-eabi-gcc --version && arm-none-eabi-gcc -print-search-dirs && make V=1 -j$(nproc) -C src/
41+
42+ - name : Archive hydrafw artifacts
43+ uses : actions/upload-artifact@v4
44+ with :
45+ name : hydrafw
46+ path : |
47+ src/build/hydrafw.dfu
48+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments