Skip to content

Commit a6f1c2e

Browse files
authored
Merge pull request #1535 from NickeZ/nickez/build-tags
CI: build tags, publish elf/map, print sha256
2 parents c0b87ff + 98247ce commit a6f1c2e

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/workflows/ci-common.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ jobs:
189189
- name: Clone the repo
190190
uses: actions/checkout@v4
191191
with:
192+
# Github action is broken: https://github.com/actions/checkout/issues/1638
193+
# Remove the below line when the issue is resolved
194+
ref: ${{ github.ref }}
192195
fetch-depth: 0
193196
fetch-tags: true
194197
submodules: recursive
@@ -203,12 +206,18 @@ jobs:
203206
if: matrix.target == 'firmware' && !cancelled()
204207
run: ./.ci/check-unwanted-symbols
205208

209+
- name: Print hashes
210+
run: sha256sum build*/bin/*
211+
206212
- name: Upload artifact
207213
if: github.event_name == 'push' && !cancelled()
208214
uses: actions/upload-artifact@v4
209215
with:
210216
name: ${{matrix.target}}-${{github.sha}}.bin
211-
path: build*/bin/*.bin
217+
path: |
218+
build*/bin/*.bin
219+
build*/bin/*.elf
220+
build*/bin/*.map
212221
213222
doc:
214223
runs-on: ubuntu-22.04

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
push:
77
branches:
88
- master
9+
tags:
10+
- bootloader/v*
11+
- firmware/v*
12+
- firmware-btc-only/v*
913

1014
jobs:
1115
dev-container:

scripts/get_version

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ We only support annotated tags, you can check the signature with --verify.
77
NOTE: annotated tags have "taggerdate" and "objecttype==tag"
88
unannotated tags will have "objecttype==commit" since they are metadataless
99
10+
NOTE: If this is called from github action, ensure github action hasn't
11+
replaced the tag during checkout:
12+
https://github.com/actions/checkout/issues/1638
13+
1014
Requires python3.6
1115
"""
1216

0 commit comments

Comments
 (0)