Skip to content

Commit f7bd9d8

Browse files
committed
Add 915 band build to CI
1 parent 08a3f91 commit f7bd9d8

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,34 @@ jobs:
3232
- name: Setup Ninja
3333
uses: ashutoshvarma/setup-ninja@v1.1
3434

35-
- name: Configure CMake
35+
- name: Configure CMake EU
3636
run: cmake -B ${{github.workspace}}/obj/${{env.BUILD_TYPE}} . -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/sdk/toolchain/toolchain.cmake -DTYPE=${{env.BUILD_TYPE}}
3737

38-
- name: Build With Ninja
38+
- name: Build With Ninja EU
3939
run: ninja -C ${{github.workspace}}/obj/${{env.BUILD_TYPE}}
4040

41-
- name: Rename Firmware
41+
- name: Rename Firmware EU
4242
if: ${{ github.event_name == 'release' }}
4343
run: mv ${{github.workspace}}/out/release/firmware.bin ${{env.REPOSITORY_NAME}}-${{env.FW_VERSION}}.bin
4444

45+
- name: Configure CMake US
46+
env:
47+
BAND: 915
48+
run: cmake -B ${{github.workspace}}/obj/${{env.BUILD_TYPE}} . -G Ninja -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/sdk/toolchain/toolchain.cmake -DTYPE=${{env.BUILD_TYPE}}
49+
50+
- name: Build With Ninja US
51+
run: ninja -C ${{github.workspace}}/obj/${{env.BUILD_TYPE}}
52+
53+
- name: Rename Firmware US
54+
if: ${{ github.event_name == 'release' }}
55+
run: mv ${{github.workspace}}/out/release/firmware.bin ${{env.REPOSITORY_NAME}}-${{env.FW_VERSION}}-us915.bin
56+
4557
- name: Release
4658
if: ${{ github.event_name == 'release' }}
4759
uses: softprops/action-gh-release@v0.1.5
4860
env:
4961
GITHUB_TOKEN: ${{ github.token }}
5062
with:
51-
files: ${{env.REPORSIORY}}-${{env.FW_VERSION}}.bin
63+
files: |
64+
${{env.REPORSIORY}}-${{env.FW_VERSION}}.bin
65+
${{env.REPORSIORY}}-${{env.FW_VERSION}}-us915.bin

0 commit comments

Comments
 (0)