Skip to content

Commit dc37f10

Browse files
authoredFeb 18, 2025··
feat: use github edgee action (#5)
* feat: use github edgee action * feat: add verification * feat: change order of steps * feat: add ls * feat: change - to ° * feat: typo in readme
1 parent a858e08 commit dc37f10

File tree

4 files changed

+33
-24
lines changed

4 files changed

+33
-24
lines changed
 

‎.github/workflows/check.yml

+29-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,36 @@
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
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
1515

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
2323
24-
- name: Build component
25-
run: |
26-
dotnet build
24+
- name: Install edgee
25+
uses: edgee-cloud/install-edgee-cli@v0.1.0
2726

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

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ help:
99
| sed -e "s/^Makefile://" -e "s///" \
1010
| awk 'BEGIN { FS = ":.*?## " }; { printf "\033[36m%-30s\033[0m %s\n", $$1, $$2 }'
1111

12-
build:
12+
build:
1313
edgee components build

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This is an example of a C# Edgee Component.
1515

1616
## Setup
1717
Requirements:
18-
- [edgee-cli] (https://github.com/edgee-cloud/edgee)
18+
- [edgee-cli](https://github.com/edgee-cloud/edgee)
1919
- dotnet SDK 9.0
2020
- Modify the csproj file to match your OS:
2121
- On Linux

‎edgee-component.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ repository = "https://github.com/edgee-cloud/example-cs-component"
1111
wit-world-version = "0.4.0"
1212

1313
[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"
1616

1717
[component.settings.example]
1818
title = "Example Config Field"

0 commit comments

Comments
 (0)
Please sign in to comment.