Skip to content

feat: use github edgee action #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 29 additions & 20 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,36 @@
name: Check
on:
push:
branches:
- main
pull_request:
push:
branches:
- main
pull_request:

jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
test:
name: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: "Set up Dotnet SDK"
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update
sudo apt-get install dotnet-sdk-9.0 -y
- name: "Set up Dotnet SDK"
run: |
sudo apt-get update
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:dotnet/backports
sudo apt-get update
sudo apt-get install dotnet-sdk-9.0 -y

- name: Build component
run: |
dotnet build
- name: Install edgee
uses: edgee-cloud/[email protected]

- name: Build component
run: |
edgee components build

- name: Verify .wasm file exists
run: |
if [ ! -f "./dc_component.wasm" ]; then
echo "❌ Error: dc_component.wasm not found" >&2
exit 1
fi
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ help:
| sed -e "s/^Makefile://" -e "s///" \
| awk 'BEGIN { FS = ":.*?## " }; { printf "\033[36m%-30s\033[0m %s\n", $$1, $$2 }'

build:
build:
edgee components build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This is an example of a C# Edgee Component.

## Setup
Requirements:
- [edgee-cli] (https://github.com/edgee-cloud/edgee)
- [edgee-cli](https://github.com/edgee-cloud/edgee)
- dotnet SDK 9.0
- Modify the csproj file to match your OS:
- On Linux
Expand Down
4 changes: 2 additions & 2 deletions edgee-component.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ repository = "https://github.com/edgee-cloud/example-cs-component"
wit-world-version = "0.4.0"

[component.build]
command = "dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc-component.wasm"
output_path = "./dc-component.wasm"
command = "dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm"
output_path = "./dc_component.wasm"

[component.settings.example]
title = "Example Config Field"
Expand Down