Repository navigation
Update dependency @bufbuild/protobuf to v2.15.0 #30
Workflow file for this run
This file contains hidden or 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
| name: .NET bindings | |
| # The Nix `dotnet-bindings` check already builds and packs this project with | |
| # the pinned SDK. This workflow covers the toolchain a contributor without | |
| # Nix uses, and annotates the exact file when the package version drifts | |
| # from cmd/scip/version.txt. | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: dotnet-bindings-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-dotnet@v6 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Validate Scip.csproj version matches cmd/scip/version.txt | |
| run: | | |
| set -euo pipefail | |
| expected=$(cat cmd/scip/version.txt) | |
| actual=$(dotnet msbuild bindings/dotnet/Scip.csproj -getProperty:Version) | |
| if [ "$actual" != "$expected" ]; then | |
| echo "::error file=bindings/dotnet/Scip.csproj::version is '$actual', expected '$expected'" | |
| exit 1 | |
| fi | |
| - name: Pack the Scip package | |
| run: dotnet pack -c Release bindings/dotnet/Scip.csproj |