Skip to content

Merge pull request #676 from open-amt-cloud-toolkit/dependabot/github… #2097

Merge pull request #676 from open-amt-cloud-toolkit/dependabot/github…

Merge pull request #676 from open-amt-cloud-toolkit/dependabot/github… #2097

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
with:
dotnet-version: 6.0.x
- name: Build rpc as library
run: go build -buildmode=c-shared -o rpc.so ./cmd
- name: Restore dependencies
run: cd samples/dotnet && dotnet restore
- name: Build
run: cd samples/dotnet && dotnet build --no-restore