Skip to content

Attempt to fix build. #8

Attempt to fix build.

Attempt to fix build. #8

Workflow file for this run

name: .NET Core
on:
push:
branches: [ develop ]
jobs:
develop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Add GitHub Nuget Source
run: dotnet nuget add source https://nuget.pkg.github.com/osmsharp/index.json -n osmsharp -u xivk -p ${{secrets.PACKAGES_SECRET }} --store-password-in-clear-text
- name: Restore packages.
run: dotnet restore
- name: Build all projects.
run: dotnet build --configuration Release --no-restore
- name: Unittests.
run: dotnet test
working-directory: ./test/OsmSharp.IO.Binary.Test/
- name: Functional tests.
run: dotnet run -c release
working-directory: ./test/OsmSharp.IO.Binary.Test.Functional/
- name: Nuget Pack
run: dotnet pack -c release
working-directory: ./src/OsmSharp.IO.Binary/
- name: Nuget push
run: dotnet nuget push **/*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/osmsharp/index.json
working-directory: ./src/