-
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.
* feat: native AOT publish (failed) * feat: publish native AOT * ci: upload full directory to artifacts * fix: static files in aot and dotnet tool versions * fix: clean artifacts script * ci: use matrix in publish aot workflow * ci: create release with artifacts
- Loading branch information
Showing
34 changed files
with
811 additions
and
393 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,50 @@ | ||
name: Publish native AOT | ||
|
||
on: | ||
push: | ||
branches: [ disabled ] | ||
|
||
jobs: | ||
build-aot: | ||
name: Build Native AOT | ||
strategy: | ||
matrix: | ||
# https://github.com/actions/runner-images | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
# temp fix frontend build | ||
# Treating warnings as errors because process.env.CI = true. | ||
# Most CI servers set it automatically. | ||
CI: 'false' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
- uses: actions/setup-node@v4 | ||
with: | ||
# Version Spec of the version to use in SemVer notation. | ||
# It also emits such aliases as lts, latest, nightly and canary builds | ||
# Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node | ||
node-version: 20 | ||
- name: Publish AOT version | ||
shell: pwsh | ||
run: | | ||
./scripts/publish-native-aot.ps1 | ||
# TODO join steps | ||
- name: 'Upload Artifact linux-x64' | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Heartbeat-linux-x64 | ||
path: artifacts/linux-x64/ | ||
retention-days: 1 | ||
- name: 'Upload Artifact win-x64' | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Heartbeat-win-x64 | ||
path: artifacts/win-x64/ | ||
retention-days: 1 |
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,73 @@ | ||
name: Create release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build-aot: | ||
name: Build Native AOT | ||
strategy: | ||
matrix: | ||
# https://github.com/actions/runner-images | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
# temp fix frontend build | ||
# Treating warnings as errors because process.env.CI = true. | ||
# Most CI servers set it automatically. | ||
CI: 'false' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
- uses: actions/setup-node@v4 | ||
with: | ||
# Version Spec of the version to use in SemVer notation. | ||
# It also emits such aliases as lts, latest, nightly and canary builds | ||
# Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node | ||
node-version: 20 | ||
- name: Publish AOT version | ||
shell: pwsh | ||
run: | | ||
./scripts/publish-native-aot.ps1 | ||
# TODO join steps | ||
- name: 'Upload Artifact linux-x64' | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Heartbeat-linux-x64 | ||
path: artifacts/linux-x64/ | ||
retention-days: 1 | ||
- name: 'Upload Artifact win-x64' | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Heartbeat-win-x64 | ||
path: artifacts/win-x64/ | ||
retention-days: 1 | ||
|
||
release: | ||
needs: build-aot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
# https://github.com/actions/download-artifact | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: release-artifacts | ||
merge-multiple: true | ||
# https://github.com/softprops/action-gh-release | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
generate_release_notes: true | ||
files: release-artifacts/** | ||
|
||
# TODO try https://github.com/marketplace/actions/release-drafter |
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,93 @@ | ||
## Troubleshooting | ||
|
||
Unable to connect to [symbol server](https://github.com/microsoft/clrmd/blob/437022b361da20cf5f02d401a01c5e2c6c366097/src/Microsoft.Diagnostics.Runtime/Implementation/SymbolServer.cs#L17) | ||
[clrmd docs](https://github.com/microsoft/clrmd/blob/437022b361da20cf5f02d401a01c5e2c6c366097/doc/GettingStarted.md?plain=1#L67) | ||
|
||
``` | ||
Unhandled exception: System.AggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.) | ||
---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. | ||
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot | ||
``` | ||
|
||
TODO find minimum requirement | ||
|
||
`apt update & apt install -y curl` | ||
|
||
``` | ||
Selecting previously unselected package openssl. | ||
(Reading database ... 4393 files and directories currently installed.) | ||
Preparing to unpack .../00-openssl_3.0.2-0ubuntu1.13_amd64.deb ... | ||
Unpacking openssl (3.0.2-0ubuntu1.13) ... | ||
Selecting previously unselected package ca-certificates. | ||
Preparing to unpack .../01-ca-certificates_20230311ubuntu0.22.04.1_all.deb ... | ||
Unpacking ca-certificates (20230311ubuntu0.22.04.1) ... | ||
Selecting previously unselected package libnghttp2-14:amd64. | ||
Preparing to unpack .../02-libnghttp2-14_1.43.0-1ubuntu0.1_amd64.deb ... | ||
Unpacking libnghttp2-14:amd64 (1.43.0-1ubuntu0.1) ... | ||
Selecting previously unselected package libpsl5:amd64. | ||
Preparing to unpack .../03-libpsl5_0.21.0-1.2build2_amd64.deb ... | ||
Unpacking libpsl5:amd64 (0.21.0-1.2build2) ... | ||
Selecting previously unselected package publicsuffix. | ||
Preparing to unpack .../04-publicsuffix_20211207.1025-1_all.deb ... | ||
Unpacking publicsuffix (20211207.1025-1) ... | ||
Selecting previously unselected package libbrotli1:amd64. | ||
Preparing to unpack .../05-libbrotli1_1.0.9-2build6_amd64.deb ... | ||
Unpacking libbrotli1:amd64 (1.0.9-2build6) ... | ||
Selecting previously unselected package libsasl2-modules-db:amd64. | ||
Preparing to unpack .../06-libsasl2-modules-db_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ... | ||
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Selecting previously unselected package libsasl2-2:amd64. | ||
Preparing to unpack .../07-libsasl2-2_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ... | ||
Unpacking libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Selecting previously unselected package libldap-2.5-0:amd64. | ||
Preparing to unpack .../08-libldap-2.5-0_2.5.16+dfsg-0ubuntu0.22.04.1_amd64.deb ... | ||
Unpacking libldap-2.5-0:amd64 (2.5.16+dfsg-0ubuntu0.22.04.1) ... | ||
Selecting previously unselected package librtmp1:amd64. | ||
Preparing to unpack .../09-librtmp1_2.4+20151223.gitfa8646d.1-2build4_amd64.deb ... | ||
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ... | ||
Selecting previously unselected package libssh-4:amd64. | ||
Preparing to unpack .../10-libssh-4_0.9.6-2ubuntu0.22.04.3_amd64.deb ... | ||
Unpacking libssh-4:amd64 (0.9.6-2ubuntu0.22.04.3) ... | ||
Selecting previously unselected package libcurl4:amd64. | ||
Preparing to unpack .../11-libcurl4_7.81.0-1ubuntu1.15_amd64.deb ... | ||
Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.15) ... | ||
Selecting previously unselected package curl. | ||
Preparing to unpack .../12-curl_7.81.0-1ubuntu1.15_amd64.deb ... | ||
Unpacking curl (7.81.0-1ubuntu1.15) ... | ||
Selecting previously unselected package libldap-common. | ||
Preparing to unpack .../13-libldap-common_2.5.16+dfsg-0ubuntu0.22.04.1_all.deb ... | ||
Unpacking libldap-common (2.5.16+dfsg-0ubuntu0.22.04.1) ... | ||
Selecting previously unselected package libsasl2-modules:amd64. | ||
Preparing to unpack .../14-libsasl2-modules_2.1.27+dfsg2-3ubuntu1.2_amd64.deb ... | ||
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Setting up libpsl5:amd64 (0.21.0-1.2build2) ... | ||
Setting up libbrotli1:amd64 (1.0.9-2build6) ... | ||
Setting up libsasl2-modules:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Setting up libnghttp2-14:amd64 (1.43.0-1ubuntu0.1) ... | ||
Setting up libldap-common (2.5.16+dfsg-0ubuntu0.22.04.1) ... | ||
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build4) ... | ||
Setting up libsasl2-2:amd64 (2.1.27+dfsg2-3ubuntu1.2) ... | ||
Setting up libssh-4:amd64 (0.9.6-2ubuntu0.22.04.3) ... | ||
Setting up openssl (3.0.2-0ubuntu1.13) ... | ||
Setting up publicsuffix (20211207.1025-1) ... | ||
Setting up libldap-2.5-0:amd64 (2.5.16+dfsg-0ubuntu0.22.04.1) ... | ||
Setting up ca-certificates (20230311ubuntu0.22.04.1) ... | ||
debconf: unable to initialize frontend: Dialog | ||
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.) | ||
debconf: falling back to frontend: Readline | ||
debconf: unable to initialize frontend: Readline | ||
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-l | ||
inux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.) | ||
debconf: falling back to frontend: Teletype | ||
Updating certificates in /etc/ssl/certs... | ||
137 added, 0 removed; done. | ||
Setting up libcurl4:amd64 (7.81.0-1ubuntu1.15) ... | ||
Setting up curl (7.81.0-1ubuntu1.15) ... | ||
Processing triggers for libc-bin (2.35-0ubuntu3.6) ... | ||
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ... | ||
Updating certificates in /etc/ssl/certs... | ||
0 added, 0 removed; done. | ||
Running hooks in /etc/ca-certificates/update.d... | ||
done. | ||
``` |
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,10 @@ | ||
$RepositoryRoot = Split-Path $PSScriptRoot | ||
$ArtifactsRoot = Join-Path $RepositoryRoot 'artifacts' | ||
|
||
Remove-Item $ArtifactsRoot -Force -Recurse -ErrorAction SilentlyContinue | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter bin | Remove-Item -Force -Recurse | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter obj | Remove-Item -Force -Recurse | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter app | Remove-Item -Force -Recurse | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter nupkg | Remove-Item -Force -Recurse | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter build | Remove-Item -Force -Recurse | ||
Get-ChildItem $RepositoryRoot -Directory -Recurse -Filter node_modules | Remove-Item -Force -Recurse |
Oops, something went wrong.