File tree 4 files changed +33
-24
lines changed
4 files changed +33
-24
lines changed Original file line number Diff line number Diff line change 1
1
name : Check
2
2
on :
3
- push :
4
- branches :
5
- - main
6
- pull_request :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
7
8
8
jobs :
9
- test :
10
- name : test
11
- runs-on : ubuntu-latest
12
- steps :
13
- - name : Checkout
14
- uses : actions/checkout@v4
9
+ test :
10
+ name : test
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
15
16
- - name : " Set up Dotnet SDK"
17
- run : |
18
- sudo apt-get update
19
- sudo apt-get install software-properties-common -y
20
- sudo add-apt-repository ppa:dotnet/backports
21
- sudo apt-get update
22
- sudo apt-get install dotnet-sdk-9.0 -y
16
+ - name : " Set up Dotnet SDK"
17
+ run : |
18
+ sudo apt-get update
19
+ sudo apt-get install software-properties-common -y
20
+ sudo add-apt-repository ppa:dotnet/backports
21
+ sudo apt-get update
22
+ sudo apt-get install dotnet-sdk-9.0 -y
23
23
24
- - name : Build component
25
- run : |
26
- dotnet build
24
+ - name : Install edgee
25
+ uses : edgee-cloud/install-edgee-cli@v0.1.0
27
26
27
+ - name : Build component
28
+ run : |
29
+ edgee components build
30
+
31
+ - name : Verify .wasm file exists
32
+ run : |
33
+ if [ ! -f "./dc_component.wasm" ]; then
34
+ echo "❌ Error: dc_component.wasm not found" >&2
35
+ exit 1
36
+ fi
Original file line number Diff line number Diff line change 9
9
| sed -e " s/^Makefile://" -e " s///" \
10
10
| awk ' BEGIN { FS = ":.*?## " }; { printf "\033[36m%-30s\033[0m %s\n", $$1, $$2 }'
11
11
12
- build :
12
+ build :
13
13
edgee components build
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ This is an example of a C# Edgee Component.
15
15
16
16
## Setup
17
17
Requirements:
18
- - [ edgee-cli] (https://github.com/edgee-cloud/edgee )
18
+ - [ edgee-cli] ( https://github.com/edgee-cloud/edgee )
19
19
- dotnet SDK 9.0
20
20
- Modify the csproj file to match your OS:
21
21
- On Linux
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ repository = "https://github.com/edgee-cloud/example-cs-component"
11
11
wit-world-version = " 0.4.0"
12
12
13
13
[component .build ]
14
- command = " dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc-component .wasm"
15
- output_path = " ./dc-component .wasm"
14
+ command = " dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component .wasm"
15
+ output_path = " ./dc_component .wasm"
16
16
17
17
[component .settings .example ]
18
18
title = " Example Config Field"
You can’t perform that action at this time.
0 commit comments