-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (54 loc) · 2.17 KB
/
publish-symbol-files-to-memfault.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Publish symbol files to Memfault
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
description: Release version to publish, e.g. "v1.1.0"
jobs:
publish:
environment: production
name: Publish firmware bundles to nRF Cloud
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
- run: npm i @octokit/rest
- run: |
python3 -m venv venv
source venv/bin/activate
pip3 install memfault-cli
- run: node .github/workflows/fetch-release-assets.mjs ${{ inputs.version }}
- name: Publish symbol files
run: |
source venv/bin/activate
memfault \
--org-token ${{ secrets.MEMFAULT_ORGANIZATION_TOKEN }} \
--org ${{ vars.MEMFAULT_ORGANIZATION_SLUG }} \
--project ${{ vars.MEMFAULT_PROJECT_SLUG }} \
upload-mcu-symbols \
--software-type asset-tracker-template-thingy91x \
--software-version ${{ inputs.version }} \
asset-tracker-template-${{ inputs.version }}-thingy91x-nrf91.elf
memfault \
--org-token ${{ secrets.MEMFAULT_ORGANIZATION_TOKEN }} \
--org ${{ vars.MEMFAULT_ORGANIZATION_SLUG }} \
--project ${{ vars.MEMFAULT_PROJECT_SLUG }} \
upload-mcu-symbols \
--software-type asset-tracker-template-nrf9151dk \
--software-version ${{ inputs.version }} \
asset-tracker-template-${{ inputs.version }}-nrf9151dk-nrf91.elf
- name: Publish debug symbol files
run: |
source venv/bin/activate
memfault \
--org-token ${{ secrets.MEMFAULT_ORGANIZATION_TOKEN }} \
--org ${{ vars.MEMFAULT_ORGANIZATION_SLUG }} \
--project ${{ vars.MEMFAULT_PROJECT_SLUG }} \
upload-mcu-symbols \
--software-type asset-tracker-template-thingy91x \
--software-version ${{ inputs.version }}-debug \
asset-tracker-template-${{ inputs.version }}-debug-thingy91x-nrf91.elf