This repository has been archived by the owner on May 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
189 additions
and
98 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
runtime: | ||
- linux-arm | ||
- linux-arm64 | ||
- ubuntu-x64 | ||
- win-arm64 | ||
- win-x64 | ||
- win-x86 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- run: | | ||
dotnet publish src/EdcHost/EdcHost.csproj -c Release -o bin \ | ||
--sc false -r ${{ matrix.runtime }} -p:DebugType=none \ | ||
-p:PublishSingleFile=true | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: edchost-${{ matrix.runtime }}-${{ github.sha }} | ||
path: bin | ||
|
||
check-style: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- run: dotnet format --verify-no-changes src/EdcHost | ||
|
||
- run: dotnet format --verify-no-changes src/EdcHost.Tests | ||
|
||
deploy-documentation: | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
needs: generate-documentation | ||
permissions: | ||
id-token: write | ||
pages: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/deploy-pages@v2 | ||
|
||
generate-documentation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: | | ||
mkdir -p site/api/ | ||
- uses: docker://asyncapi/github-action-for-generator:2.1.12 | ||
with: | ||
filepath: docs/api/asyncapi.yaml | ||
template: '@asyncapi/[email protected]' | ||
output: site/api/ | ||
|
||
- uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: site/ | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
runs-on: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- run: | | ||
dotnet test src/EdcHost.Tests/EdcHost.Tests.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
runtime: | ||
- linux-arm | ||
- linux-arm64 | ||
- ubuntu-x64 | ||
- win-arm64 | ||
- win-x64 | ||
- win-x86 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
|
||
- run: | | ||
dotnet publish src/EdcHost/EdcHost.csproj -c Release -o bin \ | ||
--sc false -r ${{ matrix.runtime }} -p:DebugType=none \ | ||
-p:PublishSingleFile=true | ||
- run: | | ||
cp CHANGELOG.md LICENSE README.md bin | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: edchost-${{ matrix.runtime }}-${{ github.sha }} | ||
path: bin | ||
|
||
upload-to-release: | ||
needs: | ||
- build | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
runtime: | ||
- linux-arm | ||
- linux-arm64 | ||
- ubuntu-x64 | ||
- win-arm64 | ||
- win-x64 | ||
- win-x86 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: edchost-${{ matrix.runtime }}-${{ github.sha }} | ||
path: bin | ||
|
||
- run: | | ||
cp CHANGELOG.md LICENSE README.md bin/ | ||
- name: Pack artifact (Windows) | ||
if: startsWith(matrix.runtime, 'win') | ||
run: | | ||
cd bin | ||
zip -r ../edchost-${{ matrix.runtime }}.zip * | ||
cd .. | ||
- name: Pack artifact (Others) | ||
if: startsWith(matrix.runtime, 'win') == false | ||
run: | | ||
cd bin | ||
chmod +x EdcHost | ||
tar -czvf ../edchost-${{ matrix.runtime }}.tar.gz * | ||
cd .. | ||
- name: Upload artifact to release (Windows) | ||
if: startsWith(matrix.runtime, 'win') | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
append_body: true | ||
files: | | ||
edchost-${{ matrix.runtime }}.zip | ||
- name: Upload artifact to release (Others) | ||
if: startsWith(matrix.runtime, 'win') == false | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
append_body: true | ||
files: | | ||
edchost-${{ matrix.runtime }}.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.