Skip to content

Commit c1edea2

Browse files
authored
Create push.yml
1 parent 4bcda1e commit c1edea2

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/push.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)