forked from akkadotnet/Akka.Hosting
-
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.
Remove NUKE and move to basic
dotnet
CLI-based build system (akkado…
…tnet#514) * deleted all NUKE code from `.sln` * moved to basic CLI build system * fix the name of our project * simplify * remove multi-line build * exclude TestKit as test project * fixed dotnet pack
- Loading branch information
1 parent
fed3d52
commit 1a5ad32
Showing
26 changed files
with
240 additions
and
1,596 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,14 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" | ||
|
||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,83 +1,51 @@ | ||
# ------------------------------------------------------------------------------ | ||
# <auto-generated> | ||
# | ||
# This code was generated. | ||
# | ||
# - To turn off auto-generation set: | ||
# | ||
# [CustomGitHubActions (AutoGenerate = false)] | ||
# | ||
# - To trigger manual generation invoke: | ||
# | ||
# nuke --generate-configuration GitHubActions_pr_validation --host GitHubActions | ||
# | ||
# </auto-generated> | ||
# ------------------------------------------------------------------------------ | ||
|
||
name: pr_validation | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- dev | ||
- 'v1.*' | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
- 'v1.*' | ||
- main | ||
|
||
jobs: | ||
windows-latest: | ||
name: windows-latest | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make build.sh executable | ||
run: chmod +x ./build.sh | ||
- name: Make build.cmd executable | ||
run: chmod +x ./build.cmd | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.* | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.* | ||
- name: Cache .nuke/temp, ~/.nuget/packages | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.nuke/temp | ||
~/.nuget/packages | ||
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | ||
- name: Run './build.cmd All' | ||
run: ./build.cmd All | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ubuntu-latest: | ||
name: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
test: | ||
name: Test-${{matrix.os}} | ||
runs-on: ${{matrix.os}} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Make build.sh executable | ||
run: chmod +x ./build.sh | ||
- name: Make build.cmd executable | ||
run: chmod +x ./build.cmd | ||
- uses: actions/setup-dotnet@v1 | ||
- name: "Checkout" | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
dotnet-version: 5.0.* | ||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.* | ||
- name: Cache .nuke/temp, ~/.nuget/packages | ||
uses: actions/cache@v3 | ||
lfs: true | ||
fetch-depth: 0 | ||
|
||
- name: "Install .NET SDK" | ||
uses: actions/setup-dotnet@v4.0.0 | ||
with: | ||
path: | | ||
.nuke/temp | ||
~/.nuget/packages | ||
key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} | ||
- name: Run './build.cmd All' | ||
run: ./build.cmd All | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
global-json-file: "./global.json" | ||
|
||
- name: "Update release notes" | ||
shell: pwsh | ||
run: | | ||
./build.ps1 | ||
- name: "dotnet build" | ||
run: dotnet build -c Release | ||
|
||
# .NET Framework tests can't run reliably on Linux, so we only do .NET 8 | ||
|
||
- name: "dotnet test" | ||
shell: bash | ||
run: dotnet test -c Release | ||
|
||
- name: "dotnet pack" | ||
run: dotnet pack -c Release -o ./bin/nuget |
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: Publish NuGet | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish-nuget: | ||
|
||
name: publish-nuget | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: "Update release notes" | ||
shell: pwsh | ||
run: | | ||
./build.ps1 | ||
- name: Create Packages | ||
run: dotnet pack /p:PackageVersion=${{ github.ref_name }} -c Release -o ./output | ||
|
||
- name: Push Packages | ||
run: dotnet nuget push "output/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
||
- name: release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: 'Akka.Hosting ${{ github.ref_name }}' | ||
tag_name: ${{ github.ref }} | ||
body_path: RELEASE_NOTES.md | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload Release Asset | ||
uses: AButler/upload-release-assets@v3.0 | ||
with: | ||
repo-token: ${{ github.token }} | ||
release-tag: ${{ github.ref_name }} | ||
files: 'output/*.nupkg' |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<Copyright>Copyright © 2013-2024 Akka.NET Team</Copyright> | ||
<Authors>Akka.NET Team</Authors> | ||
<VersionPrefix>1.5.30.1</VersionPrefix> | ||
<PackageReleaseNotes>* [Fix ActorRegistry.GetAsync() returning Nobody](https://github.com/akkadotnet/Akka.Hosting/pull/501)</PackageReleaseNotes> | ||
<PackageIcon>akkalogo.png</PackageIcon> | ||
<PackageProjectUrl> | ||
https://github.com/akkadotnet/Akka.Hosting | ||
</PackageProjectUrl> | ||
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression> | ||
<NoWarn>$(NoWarn);CS1591</NoWarn> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<LangVersion>10.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<LibraryFramework>netstandard2.0</LibraryFramework> | ||
<TestsNetCoreFramework>net8.0</TestsNetCoreFramework> | ||
<XunitVersion>2.8.1</XunitVersion> | ||
<TestSdkVersion>17.11.1</TestSdkVersion> | ||
<CoverletVersion>6.0.2</CoverletVersion> | ||
<XunitRunneVisualstudio>2.8.1</XunitRunneVisualstudio> | ||
<AkkaVersion>1.5.30</AkkaVersion> | ||
<MicrosoftExtensionsVersion>[6.0.0,)</MicrosoftExtensionsVersion> | ||
</PropertyGroup> | ||
<!-- SourceLink support for all Akka.NET projects --> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="$(MSBuildThisFileDirectory)\docs\images\akkalogo.png" Pack="true" Visible="false" PackagePath="\" /> | ||
<None Include="$(MSBuildThisFileDirectory)\README.md" Pack="true" Visible="false" PackagePath="\" /> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB --> | ||
<EmbedUntrackedSources>true</EmbedUntrackedSources> | ||
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link --> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
</Project> |
Oops, something went wrong.