-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.45 KB
/
native-aot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Publish native AOT
on:
push:
branches: [ native-aot ]
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