-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CI/CD scripts * Add global.json file, targets .NET 6.0 SDK * Remove NUKE project * Make CI/CD run purely on GitHub Actions, mimic Akka.Hosting setup * Move Directory.Build.props file to root * Add Directory.Generated.props file to root * Change RELEASE_NOTES.md file format to match Akka.Hosting format * Update global.json
- Loading branch information
Showing
25 changed files
with
214 additions
and
1,340 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -30,46 +30,62 @@ jobs: | |
windows-latest: | ||
name: windows-latest | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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/[email protected] | ||
with: | ||
dotnet-version: 6.0.* | ||
- name: Cache .nuke/temp, ~/.nuget/packages | ||
uses: actions/cache@v2 | ||
lfs: true | ||
fetch-depth: 0 | ||
|
||
- name: "Install .NET SDK" | ||
uses: actions/[email protected] | ||
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 | ||
|
||
- name: "dotnet test" | ||
shell: bash | ||
run: dotnet test -c Release | ||
|
||
- name: "dotnet pack" | ||
run: dotnet pack -c Release -o ./bin/nuget | ||
|
||
ubuntu-latest: | ||
name: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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/[email protected] | ||
with: | ||
dotnet-version: 6.0.* | ||
- name: Cache .nuke/temp, ~/.nuget/packages | ||
uses: actions/cache@v2 | ||
lfs: true | ||
fetch-depth: 0 | ||
|
||
- name: "Install .NET SDK" | ||
uses: actions/[email protected] | ||
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 Core | ||
- name: "dotnet test" | ||
shell: bash | ||
run: dotnet test -c Release -f net6.0 | ||
|
||
- 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.TestKit.NUnit ${{ github.ref_name }}' | ||
tag_name: ${{ github.ref }} | ||
body_path: RELEASE_NOTES.md | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload Release Asset | ||
uses: AButler/[email protected] | ||
with: | ||
repo-token: ${{ github.token }} | ||
release-tag: ${{ github.ref_name }} | ||
files: 'output/*.nupkg' |
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
Oops, something went wrong.