Skip to content

Commit 5fab1dd

Browse files
authored
Merge pull request #37 from gotvinne/got/ci/add-tag-pipeline
Chore: add tag pipeline
2 parents de898d9 + 5e08b70 commit 5fab1dd

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: ci
33
on:
44
pull_request:
55
branches: [main]
6+
paths:
7+
- 'src/**'
68

79
jobs:
810
lint:
@@ -34,7 +36,7 @@ jobs:
3436
source ./aliases.sh
3537
chmod +x ./aliases.sh
3638
./aliases.sh
37-
- name: Copy src foldet to sdk
39+
- name: Copy src folder to sdk
3840
run: |
3941
rsync -a --delete ./src/ ./microbit-v2-sdk/source/
4042
- name: microbuild python

.github/workflows/release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release Build
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install build dependencies
17+
run: sudo apt install -y gcc python3 cmake gcc-arm-none-eabi binutils-arm-none-eabi
18+
19+
- name: Run microinstall
20+
run: |
21+
chmod +x microinstall.sh
22+
./microinstall.sh
23+
24+
- name: Run microbuild
25+
run: |
26+
chmod +x microbuild.sh
27+
./microbuild.sh
28+
29+
- name: Upload MICROBIT.hex artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: MICROBIT-hex-${{ github.ref_name }}
33+
path: MICROBIT.hex

0 commit comments

Comments
 (0)