-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Zastai/update-build-sdk-and-targets
Update build SDK and targets
- Loading branch information
Showing
11 changed files
with
77 additions
and
71 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
dotnet-version: 8.0.x | ||
strategy: | ||
matrix: | ||
configuration: ['Debug', 'Release'] | ||
|
||
steps: | ||
- name: Check out the project | ||
uses: actions/checkout@v4 | ||
- name: Set up .NET ${{env.dotnet-version}} | ||
uses: actions/setup-dotnet@v4 | ||
id: setup | ||
with: | ||
dotnet-version: ${{env.dotnet-version}} | ||
env: | ||
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Create global.json to force use of .NET SDK ${{steps.setup.outputs.dotnet-version}} | ||
run: echo '{"sdk":{"version":"${{steps.setup.outputs.dotnet-version}}"}}' > ./global.json | ||
- name: Run build script (${{matrix.configuration}}) | ||
run: pwsh ./build-package.ps1 -WithBinLog -Configuration ${{matrix.configuration}} | ||
- name: "Artifact: MSBuild Logs" | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: MSBuild Logs (${{matrix.configuration}}) | ||
path: msbuild.*.binlog | ||
- name: "Artifact: NuGet Packages" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: NuGet Packages (${{matrix.configuration}}) | ||
path: "output/package/${{matrix.configuration}}/*.*nupkg" | ||
- name: Publish (NuGet - GitHub Packages) | ||
if: matrix.configuration == 'Release' && startsWith(github.ref, 'refs/tags/v') | ||
run: "dotnet nuget push output/package/${{matrix.configuration}}/*.*nupkg -s https://nuget.pkg.github.com/zastai/index.json -k ${{secrets.GITHUB_TOKEN}}" | ||
- name: Publish (NuGet - nuget.org) | ||
if: matrix.configuration == 'Release' && startsWith(github.ref, 'refs/tags/v') | ||
run: "dotnet nuget push output/package/${{matrix.configuration}}/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}" |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="MetaBrainz.Build.Sdk"> | ||
<Project Sdk="MetaBrainz.Build.Sdk/3.0.0"> | ||
|
||
<PropertyGroup> | ||
<Authors>Zastai</Authors> | ||
<Title>Common Utilities</Title> | ||
<Description>This package provides general utility classes used by other MetaBrainz packages.</Description> | ||
<PackageCopyrightYears>2022</PackageCopyrightYears> | ||
<PackageCopyrightOwners>Tim Van Holder</PackageCopyrightOwners> | ||
<PackageCopyrightYears>2022, 2023</PackageCopyrightYears> | ||
<PackageRepositoryName>MetaBrainz.Common</PackageRepositoryName> | ||
<PackageTags>MetaBrainz</PackageTags> | ||
<Version>1.0.1-pre</Version> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="JetBrains.Annotations" IncludeAssets="compile" PrivateAssets="all" /> | ||
<PackageReference Include="System.Memory" /> | ||
<PackageReference Include="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# MetaBrainz.Common [![Build Status](https://img.shields.io/appveyor/build/zastai/metabrainz-common)](https://ci.appveyor.com/project/Zastai/metabrainz-common) [![NuGet Version](https://img.shields.io/nuget/v/MetaBrainz.Common)](https://www.nuget.org/packages/MetaBrainz.Common) | ||
# MetaBrainz.Common [![Build Status][CI-S]][CI-L] [![NuGet Package Version][NuGet-S]][NuGet-L] | ||
|
||
General helper classes, for use by the other `MetaBrainz.*` packages. | ||
|
||
[CI-S]: https://github.com/Zastai/MetaBrainz.Common/actions/workflows/build.yml/badge.svg | ||
[CI-L]: https://github.com/Zastai/MetaBrainz.Common/actions/workflows/build.yml | ||
|
||
[NuGet-S]: https://img.shields.io/nuget/v/MetaBrainz.Common | ||
[NuGet-L]: https://www.nuget.org/packages/MetaBrainz.Common |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.