Skip to content

Commit 0170451

Browse files
committed
update ci to build all component types
1 parent af59ab8 commit 0170451

File tree

1 file changed

+27
-28
lines changed

1 file changed

+27
-28
lines changed

.github/workflows/check.yml

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
11
name: Check
22
on:
3-
push:
4-
branches:
5-
- main
6-
pull_request:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
77

88
env:
99
EDGEE_API_TOKEN: ${{ secrets.EDGEE_API_TOKEN }}
1010

1111
jobs:
12-
test:
13-
name: test
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v4
12+
full-ci:
13+
name: Full CI (${{ matrix.dir }})
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
dir: [consent-management, data-collection]
18+
defaults:
19+
run:
20+
working-directory: ${{ matrix.dir }}
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
1824

19-
- name: "Set up Dotnet SDK"
20-
run: |
21-
wget https://download.visualstudio.microsoft.com/download/pr/c526dc3b-5240-4449-ba07-ed9a3610fe09/442f1cf6e4e832eea0b045f9e108c8b7/dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz
22-
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz -C $HOME/dotnet
25+
- name: "Set up Dotnet SDK"
26+
run: |
27+
wget https://download.visualstudio.microsoft.com/download/pr/c526dc3b-5240-4449-ba07-ed9a3610fe09/442f1cf6e4e832eea0b045f9e108c8b7/dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz
28+
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz -C $HOME/dotnet
2329
24-
- name: Install edgee
25-
uses: edgee-cloud/[email protected]
30+
- name: Install edgee
31+
uses: edgee-cloud/[email protected]
2632

27-
- name: Build component
28-
run: |
29-
export DOTNET_ROOT=$HOME/dotnet
30-
export PATH=$HOME/dotnet:$PATH
31-
edgee component build
32-
33-
- name: Verify .wasm file exists
34-
run: |
35-
if [ ! -f "./dc_component.wasm" ]; then
36-
echo "❌ Error: dc_component.wasm not found" >&2
37-
exit 1
38-
fi
33+
- name: Build component
34+
run: |
35+
export DOTNET_ROOT=$HOME/dotnet
36+
export PATH=$HOME/dotnet:$PATH
37+
edgee component build

0 commit comments

Comments
 (0)