Skip to content

Commit ed46b6e

Browse files
committed
feat: add conditional checks for BO_EDITION in CI workflows
1 parent ff3c3a2 commit ed46b6e

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/flutter-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020
jobs:
2121
test:
2222
runs-on: ubuntu-latest
23+
if: ${{ vars.BO_EDITION == 'ce' }}
2324
defaults:
2425
run:
2526
working-directory: ${{ env.FLUTTER_WORKING_DIR }}
@@ -72,6 +73,7 @@ jobs:
7273
7374
7475
get-version:
76+
if: ${{ vars.BO_EDITION == 'ce' }}
7577
runs-on: ubuntu-latest
7678
outputs:
7779
version: ${{ steps.extract.outputs.version }}
@@ -96,6 +98,7 @@ jobs:
9698
9799
98100
build-apk:
101+
if: ${{ vars.BO_EDITION == 'ce' }}
99102
needs: [test, get-version]
100103
runs-on: ubuntu-latest
101104
defaults:
@@ -182,6 +185,7 @@ jobs:
182185
path: ${{ github.workspace }}/${{ env.FLUTTER_WORKING_DIR }}/build/app/outputs/flutter-apk/borneo-app-ce-${{ needs.get-version.outputs.version }}.apk
183186

184187
build-windows:
188+
if: ${{ vars.BO_EDITION == 'ce' }}
185189
needs: [test, get-version]
186190
runs-on: windows-latest
187191
defaults:
@@ -249,6 +253,7 @@ jobs:
249253
path: client/build/windows/dist/borneo-app-ce-${{ needs.get-version.outputs.version }}-windows-x64.zip
250254

251255
build-ios:
256+
if: ${{ vars.BO_EDITION == 'ce' }}
252257
needs: [test, get-version]
253258
runs-on: macos-14
254259
defaults:
@@ -302,7 +307,7 @@ jobs:
302307
release:
303308
needs: [build-apk, build-windows, build-ios]
304309
runs-on: ubuntu-latest
305-
if: github.ref == 'refs/heads/master'
310+
if: ${{ github.ref == 'refs/heads/master' && vars.BO_EDITION == 'ce' }}
306311

307312
steps:
308313
- name: Download artifacts

.github/workflows/fw-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
build-lyfi:
1717
runs-on: ubuntu-latest
1818
container: 'espressif/idf:v5.5.2'
19+
if: ${{ vars.BO_EDITION == 'ce' }}
1920
env:
2021
LYFI_PRODUCTS: bst/ulva6 bst/blc06mk1
2122

.github/workflows/fw-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions:
1515

1616
jobs:
1717
release:
18+
if: ${{ vars.BO_EDITION == 'ce' }}
1819
runs-on: ubuntu-latest
1920
container: 'espressif/idf:v5.5.2'
2021
env:

0 commit comments

Comments
 (0)