diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 05135af..28d7809 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -15,17 +15,16 @@ jobs: - 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 + 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 + mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-10.0.100-preview.2.25164.34-linux-x64.tar.gz -C $HOME/dotnet - name: Install edgee uses: edgee-cloud/install-edgee-cli@v0.1.0 - name: Build component run: | + export DOTNET_ROOT=$HOME/dotnet + export PATH=$HOME/dotnet:$PATH edgee components build - name: Verify .wasm file exists diff --git a/README.md b/README.md index 6622f45..5a40867 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ This is an example of a C# Edgee Component. ## Setup Requirements: - [edgee-cli](https://github.com/edgee-cloud/edgee) -- dotnet SDK 9.0 +- [dotnet SDK 10.0](https://dotnet.microsoft.com/en-us/download/dotnet/10.0) - Modify the csproj file to match your OS: - On Linux ```dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease``` diff --git a/edgee-component.toml b/edgee-component.toml index 1ee0935..62ef3dd 100644 --- a/edgee-component.toml +++ b/edgee-component.toml @@ -9,10 +9,10 @@ description = "Example CSharp component for data collection" documentation = "https://github.com/edgee-cloud/example-cs-component" repository = "https://github.com/edgee-cloud/example-cs-component" language = "CSharp" -wit-version = "0.5.0" +wit-version = "1.0.0" [component.build] -command = "dotnet build && mv ./bin/Debug/net9.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm" +command = "dotnet build && mv ./bin/Debug/net10.0/wasi-wasm/publish/example-cs-component.wasm ./dc_component.wasm" output_path = "./dc_component.wasm" [component.settings.example] diff --git a/example-cs-component.csproj b/example-cs-component.csproj index 57cfa71..323002d 100644 --- a/example-cs-component.csproj +++ b/example-cs-component.csproj @@ -2,7 +2,7 @@ Library - net9.0 + net10.0 example_cs_component enable enable