-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 zig-sdk.cake. * Upload build logs/artifacts from GitHub Actions workflows. * Improve the JetBrains Fleet experience in the repo. Closes #87.
- Loading branch information
Showing
24 changed files
with
851 additions
and
130 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,10 @@ | ||
{ | ||
"files.exclude": [ | ||
"out", | ||
".idea", | ||
".vs", | ||
"bin", | ||
"node_modules", | ||
"obj" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -22,18 +22,6 @@ jobs: | |
- macos-13 | ||
- ubuntu-22.04 | ||
- windows-2022 | ||
cfg: | ||
- Debug | ||
- Release | ||
mode: | ||
- Fast | ||
- Safe | ||
- Small | ||
exclude: | ||
- cfg: Debug | ||
mode: Fast | ||
- cfg: Debug | ||
mode: Small | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Clone repository | ||
|
@@ -43,25 +31,18 @@ jobs: | |
submodules: recursive | ||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
- name: Build project | ||
run: | | ||
dotnet tool restore | ||
dotnet build | ||
- name: Restore samples | ||
run: | | ||
dotnet restore src/samples | ||
- name: Build samples | ||
run: | | ||
dotnet build src/samples -c ${{ matrix.cfg }} --no-restore -p:ReleaseMode=${{ matrix.mode }} | ||
- name: Test samples | ||
run: | | ||
dotnet test src/samples -c ${{ matrix.cfg }} --no-restore -p:ReleaseMode=${{ matrix.mode }} | ||
- name: Pack samples | ||
run: | | ||
dotnet pack src/samples -c ${{ matrix.cfg }} --no-build | ||
- name: Publish samples | ||
run: | | ||
dotnet publish src/samples -c ${{ matrix.cfg }} --no-build | ||
- name: Clean samples | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version-file: doc/package.json | ||
- name: Run Cake | ||
run: | | ||
dotnet clean src/samples -c ${{ matrix.cfg }} | ||
./cake | ||
- name: Upload artifacts | ||
if: always() | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ github.workflow }}-${{ github.run_number }}-${{ github.run_attempt }}-${{ matrix.os }}-Release | ||
path: | | ||
out/log | ||
out/pkg |
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/zig-sdk' | ||
|
@@ -23,10 +24,18 @@ 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-Release | ||
path: | | ||
out/log | ||
out/pkg |
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/zig-sdk' | ||
|
@@ -23,10 +24,18 @@ jobs: | |
submodules: recursive | ||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
- name: Build project | ||
run: | | ||
dotnet tool restore | ||
dotnet build | ||
- 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 | ||
- 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 |
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,7 +1,8 @@ | ||
.vs | ||
*.user | ||
/pkg/cache/*/* | ||
/pkg/feed/*.nupkg | ||
/out | ||
/src/samples/**/bin | ||
/src/samples/**/obj | ||
/src/samples/global.json | ||
bin | ||
obj | ||
*.user | ||
.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"files.exclude": { | ||
"**/.vs": true, | ||
"pkg/cache/*[!_._]": true, | ||
"pkg/feed/*.nupkg": true, | ||
"out": true, | ||
"src/samples/**/bin": true, | ||
"src/samples/**/obj": true, | ||
"src/samples/global.json": true, | ||
"**/bin": true, | ||
"**/obj": true | ||
"**/.idea": true, | ||
"**/.vs": 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
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 zig-sdk.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 |
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 @@ | ||
{ | ||
"globs": [ | ||
"**/*.md" | ||
], | ||
"ignores": [ | ||
"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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
audit = false | ||
engine-strict = true | ||
fund = false | ||
logs-dir = ../out/log/node | ||
logs-max = 9007199254740991 | ||
save-exact = true |
Oops, something went wrong.