-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Cake for build orchestration.
Also: * Switch to artifacts output paths in .NET projects. * Integrate markdownlint-cli2 as part of the build. * Simplify GitHub Actions workflows by moving logic into cathode.cake. * Upload build logs/artifacts from GitHub Actions workflows. * Improve the JetBrains Fleet experience in the repo. Closes #123.
- Loading branch information
Showing
24 changed files
with
742 additions
and
98 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,8 @@ | ||
{ | ||
"files.exclude": [ | ||
"out", | ||
".idea", | ||
".vs", | ||
"node_modules" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -34,10 +34,13 @@ jobs: | |
submodules: recursive | ||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
- name: Build project | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: doc/package.json | ||
- name: Run Cake | ||
run: | | ||
dotnet tool restore | ||
dotnet publish -c ${{ matrix.cfg }} | ||
./cake -c ${{ matrix.cfg }} | ||
- name: Run samples | ||
run: | | ||
dotnet example --all \ | ||
|
@@ -48,3 +51,12 @@ jobs: | |
--skip scrolling \ | ||
--skip signals \ | ||
--skip width | ||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ github.workflow }}-${{ github.run_number }}-${{ github.run_attempt }}-${{ matrix.os }}-${{ matrix.cfg }} | ||
path: | | ||
out/log | ||
out/pkg | ||
out/pub |
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
DOTNET_NOLOGO: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
package: | ||
if: github.repository == 'vezel-dev/cathode' | ||
|
@@ -23,10 +24,19 @@ jobs: | |
submodules: recursive | ||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
- name: Build project | ||
run: | | ||
dotnet tool restore | ||
dotnet build | ||
- name: Upload GitHub packages | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: doc/package.json | ||
- name: Run Cake | ||
run: | | ||
dotnet gpr push pkg/feed/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} | ||
./cake upload-core-github | ||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ github.workflow }}-${{ github.run_number }}-${{ github.run_attempt }}-windows-2022-Debug | ||
path: | | ||
out/log | ||
out/pkg | ||
out/pub |
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ env: | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
DOTNET_NOLOGO: true | ||
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | ||
jobs: | ||
release: | ||
if: github.repository == 'vezel-dev/cathode' | ||
|
@@ -23,10 +24,19 @@ jobs: | |
submodules: recursive | ||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
- name: Build project | ||
run: | | ||
dotnet tool restore | ||
dotnet build -c Release | ||
- name: Upload NuGet packages | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: doc/package.json | ||
- name: Run Cake | ||
run: | | ||
dotnet nuget push pkg/feed/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate | ||
./cake upload-core-nuget -c Release | ||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ github.workflow }}-${{ github.run_number }}-${{ github.run_attempt }}-windows-2022-Release | ||
path: | | ||
out/log | ||
out/pkg | ||
out/pub |
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,6 +1,5 @@ | ||
.vs | ||
/out | ||
*.user | ||
/pkg/cache/*/* | ||
/pkg/feed/*.nupkg | ||
bin | ||
obj | ||
.idea | ||
.vs | ||
node_modules |
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,9 +1,8 @@ | ||
{ | ||
"files.exclude": { | ||
"out": true, | ||
"**/.idea": true, | ||
"**/.vs": true, | ||
"pkg/cache/*[!_._]": true, | ||
"pkg/feed/*.nupkg": true, | ||
"**/bin": true, | ||
"**/obj": true | ||
"**/node_modules": true | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
cd -- "$(dirname -- "$(readlink -e -- "${BASH_SOURCE[0]}")")" | ||
|
||
dotnet tool restore | ||
dotnet cake cathode.cake -t "${1:-default}" "${@:2}" |
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,8 @@ | ||
[Paths] | ||
Addins=out/bld/addins | ||
Cache=out/bld/cache | ||
Tools=out/bld/tools | ||
|
||
[Settings] | ||
SkipVerification=true | ||
EnableScriptCache=true |
Oops, something went wrong.