.NET norm extension GitHub actions (#16)

* Added .NET action
pull/85/head
mullerj 2023-06-29 20:32:19 -04:00 committed by GitHub
parent 96476ffa79
commit a1dcbf1bc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 0 deletions

30
.github/workflows/dotnet-publish.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: ".NET Publish"
on:
workflow_run:
workflows: ['.NET']
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/dotnet
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Package .NET
uses: devcontainers/ci@v0.3
with:
push: never
runCmd: |
cd ./src/dotnet
chmod 755 *.sh
./pack-linux-x64.sh

35
.github/workflows/dotnet.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: .NET
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/dotnet
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v3.1.4
with:
python-version: 3.x
- name: Build NORM
run: ./waf
working-directory: .
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore /property:Configuration=Release
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release