Bump senzing-factory/github-action-install-senzing-sdk from 2 to 3 #76
Workflow file for this run
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
name: csharp darwin snippets | |
on: [pull_request, workflow_dispatch] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
csharp-darwin-snippets: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
include: | |
- dotnet-version: "8" | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: install Senzing SDK | |
uses: senzing-factory/github-action-install-senzing-sdk@v3 | |
with: | |
senzingsdk-repository-path: ${{ secrets.SENZING_OSX_BETA_REPOSITORY }} | |
- name: configure environment | |
run: | | |
SENZING_DIR="${HOME}/senzing/er" | |
{ | |
echo "SENZING_DIR=${SENZING_DIR}" | |
echo "DYLD_LIBRARY_PATH=${SENZING_DIR}/lib" | |
} >> "$GITHUB_ENV" | |
- name: configure local nuget repo | |
run: | | |
sdk_package=$(find "${HOME}"/senzing/er/sdk/dotnet/ -name "Senzing.Sdk*" | xargs -0 -L 1 basename) | |
mkdir -p ~/dev/nuget/packages | |
dotnet nuget add source ~/dev/nuget/packages -n dev | |
dotnet nuget push "${HOME}"/senzing/er/sdk/dotnet/"${sdk_package}" --source dev | |
- name: run csharp snippets | |
run: | | |
cd "${GITHUB_WORKSPACE}"/csharp/runner | |
dotnet add SnippetRunner package Senzing.Sdk --version 4.0.0-beta | |
dotnet run --project SnippetRunner all |