-
Notifications
You must be signed in to change notification settings - Fork 5
100 lines (85 loc) · 2.89 KB
/
dep_build.yml
File metadata and controls
100 lines (85 loc) · 2.89 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build hyperlight-js
on:
workflow_call:
inputs:
environment:
required: false
type: string
permissions:
id-token: write
contents: read
jobs:
build:
environment: ${{ inputs.environment }}
strategy:
fail-fast: true
matrix:
build: [windows-2025-debug, linux-kvm-debug, linux-hyperv3-debug, windows-2025-release, linux-kvm-release, linux-hyperv3-release]
include:
- build: windows-2025-debug
os: [self-hosted, Windows, X64, "1ES.Pool=hld-win2025-amd"]
hypervisor: whp
config: debug
- build: linux-kvm-debug
os: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
hypervisor: kvm
config: debug
- build: linux-hyperv3-debug
os: [self-hosted, Linux, X64, "1ES.Pool=hld-azlinux3-mshv-amd"]
hypervisor: hyperv3
config: debug
- build: windows-2025-release
os: [self-hosted, Windows, X64, "1ES.Pool=hld-win2025-amd"]
hypervisor: whp
config: release
- build: linux-kvm-release
os: [self-hosted, Linux, X64, "1ES.Pool=hld-kvm-amd"]
hypervisor: kvm
config: release
- build: linux-hyperv3-release
os: [self-hosted, Linux, X64, "1ES.Pool=hld-azlinux3-mshv-amd"]
hypervisor: hyperv3
config: release
runs-on: ${{ fromJson(
format('["self-hosted", "{0}", "X64", "1ES.Pool=hld-{1}-amd", "JobId=build-{2}-{3}-{4}-{5}"]',
matrix.hypervisor == 'whp' && 'Windows' || 'Linux',
matrix.hypervisor == 'whp' && 'win2025' || matrix.hypervisor == 'hyperv3' && 'azlinux3-mshv' || 'kvm',
matrix.build,
github.run_id,
github.run_number,
github.run_attempt)) }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: hyperlight-dev/ci-setup-workflow@v1.9.0
with:
rust-toolchain: "1.89"
- name: install nodejs
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: 'src/js-host-api/package-lock.json'
- name: fmt
run: just fmt-check
- name: Build
run: |
just build ${{ matrix.config }}
- name: Build js-host-api
run: |
just build-js-host-api ${{ matrix.config }}
- name: lint
run: just lint ${{ matrix.config }}
- name: test
run: just test-all ${{ matrix.config }}
- name: Run Rust examples
run: just run-examples ${{ matrix.config }}
- name: Run node examples
run: just run-js-host-api-examples ${{ matrix.config }}
- name: Run Rust examples (tracing)
env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
run: just run-examples-tracing ${{ matrix.config }}