Skip to content

Commit a5b91c2

Browse files
ci: enable Git LFS in checkout step and add platform/locale matrix
- Add lfs: true to actions/checkout so LFS-tracked files are pulled during the build - Add platform (angular/blazor/react/wc) and locale (en/ja) as workflow_dispatch inputs and job matrix dimensions - Build command now uses npm run build:<platform>:<locale> - Runner fixed to ubuntu-latest; Node pinned to latest 20.x
1 parent 00f7dfe commit a5b91c2

1 file changed

Lines changed: 35 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,41 @@ on:
1414
required: false
1515
type: boolean
1616
default: false
17+
platform:
18+
description: 'Technology platform to build (all = every platform in the matrix)'
19+
required: false
20+
type: choice
21+
default: all
22+
options:
23+
- all
24+
- angular
25+
- blazor
26+
- react
27+
- wc
28+
locale:
29+
description: 'Locale to build for (all = every locale in the matrix)'
30+
required: false
31+
type: choice
32+
default: all
33+
options:
34+
- all
35+
- en
36+
- ja
1737

1838
jobs:
1939
build:
40+
strategy:
41+
matrix:
42+
platform: [angular, blazor, react, wc]
43+
locale: [en, ja]
2044
runs-on: ubuntu-latest
45+
if: >
46+
(github.event_name != 'workflow_dispatch' ||
47+
github.event.inputs.platform == 'all' ||
48+
github.event.inputs.platform == matrix.platform) &&
49+
(github.event_name != 'workflow_dispatch' ||
50+
github.event.inputs.locale == 'all' ||
51+
github.event.inputs.locale == matrix.locale)
2152
permissions:
2253
contents: read
2354

@@ -27,12 +58,13 @@ jobs:
2758
with:
2859
clean: true
2960
persist-credentials: true
61+
lfs: true
3062
path: igniteui-angular-examples
3163

3264
- name: Setup Node.js
3365
uses: actions/setup-node@v4
3466
with:
35-
node-version: '20.19.0'
67+
node-version: '20'
3668

3769
- name: Install npm dependencies
3870
run: npm install
@@ -48,9 +80,9 @@ jobs:
4880
- name: Build project
4981
run: |
5082
if [ "${{ github.event.inputs.isVerbose }}" == "true" ]; then
51-
npm run build --verbose
83+
npm run build:${{ matrix.platform }}:${{ matrix.locale }} --verbose
5284
else
53-
npm run build
85+
npm run build:${{ matrix.platform }}:${{ matrix.locale }}
5486
fi
5587
working-directory: ./igniteui-angular-examples/browser
5688

0 commit comments

Comments
 (0)