Skip to content

Commit a97534e

Browse files
fix: create upgrade pack in release builds (#155)
1 parent c1508f6 commit a97534e

3 files changed

Lines changed: 36 additions & 19 deletions

File tree

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,5 @@ jobs:
2727

2828
upgrade-pack:
2929
name: Build Upgrade Pack
30-
runs-on: [ubuntu-latest]
31-
container: ghcr.io/philips-software/amp-devcontainer-cpp:v6.0.2@sha256:36afaaa5ba4bc4e9bb471012db9733c26a210e315ddb33600f73bb9532b02a25 # 6.0.2
3230
needs: Build
33-
steps:
34-
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
35-
with:
36-
name: HostInstall
37-
- run: tar -zxvf Postmaster-*-Linux.tar.gz
38-
- run: mkdir install
39-
- run: mv Postmaster-*-Linux/* install/
40-
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
41-
with:
42-
name: postmaster
43-
- run: tar -zxvf Postmaster-*-Generic-ELF.tar.gz
44-
- run: cp -r Postmaster-*-Generic-ELF/* install/
45-
- run: install/bin/postmaster.upgrade_pack_builder --app=install/bin/postmaster.postmaster_stm32f407.hex --output=Postmaster-0.3.1.upg # x-release-please-version
46-
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
47-
with:
48-
name: UpgradePack
49-
path: Postmaster-0.3.1.upg # x-release-please-version
31+
uses: ./.github/workflows/wc-upgrade-pack.yml

.github/workflows/release-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
target: ${{ matrix.target }}
2424
configuration: ${{ matrix.configuration }}
2525

26+
upgrade-pack:
27+
name: Build Upgrade Pack
28+
needs: [build]
29+
uses: ./.github/workflows/wc-upgrade-pack.yml
30+
2631
apply-release-notes-template:
2732
name: 📝 Apply Release Template
2833
runs-on: ubuntu-latest
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Continuous Integration
3+
4+
on:
5+
workflow_call:
6+
7+
permissions: {}
8+
9+
jobs:
10+
upgrade-pack:
11+
name: Build Upgrade Pack
12+
runs-on: [ubuntu-latest]
13+
container: ghcr.io/philips-software/amp-devcontainer-cpp:v6.0.2@sha256:36afaaa5ba4bc4e9bb471012db9733c26a210e315ddb33600f73bb9532b02a25 # 6.0.2
14+
steps:
15+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
16+
with:
17+
name: HostInstall
18+
- run: tar -zxvf Postmaster-*-Linux.tar.gz
19+
- run: mkdir install
20+
- run: mv Postmaster-*-Linux/* install/
21+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
22+
with:
23+
name: postmaster
24+
- run: tar -zxvf Postmaster-*-Generic-ELF.tar.gz
25+
- run: cp -r Postmaster-*-Generic-ELF/* install/
26+
- run: install/bin/postmaster.upgrade_pack_builder --app=install/bin/postmaster.postmaster_stm32f407.hex --output=Postmaster-0.3.1.upg # x-release-please-version
27+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
28+
with:
29+
name: UpgradePack
30+
path: Postmaster-0.3.1.upg # x-release-please-version

0 commit comments

Comments
 (0)