Skip to content

Commit bdd2699

Browse files
authored
Merge pull request #222 from eltariel/build-with-gha
Build with GitHub Actions
2 parents 27c981a + e6990e6 commit bdd2699

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Install build deps
18+
shell: bash
19+
run: |
20+
sudo apt-get install -y \
21+
gcc-arm-none-eabi \
22+
libnewlib-arm-none-eabi \
23+
dosfstools
24+
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Render webconfig
29+
shell: bash
30+
working-directory: webconfig
31+
run: make
32+
33+
- name: Build disk image
34+
shell: bash
35+
working-directory: disk
36+
run: ./create.sh
37+
38+
- name: Build firmware
39+
shell: bash
40+
run: |
41+
cmake -S . -B build
42+
cmake --build build
43+
44+
- name: Publish artifacts
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: deskhop-gha-${{ github.run_number }}
48+
path: build/deskhop.uf2

0 commit comments

Comments
 (0)