forked from hyperlight-dev/hyperlight
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.46 KB
/
dep_build_guest_binaries.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
51
52
53
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Build Guest Binaries
on:
workflow_call:
env:
CARGO_TERM_COLOR: always
permissions:
id-token: write
contents: read
jobs:
# this job has no dependencies
build-guest-binaries:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
build: [windows-2022-debug, windows-2022-release]
include:
- build: windows-2022-debug
os: windows-2022
config: debug
- build: windows-2022-release
os: windows-2022
config: release
steps:
- uses: actions/checkout@v4
- uses: hyperlight-dev/[email protected]
with:
rust-toolchain: "1.81.0"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and move Rust guests
run: just build-and-move-rust-guests
- name: Upload Binary Artifacts
uses: actions/upload-artifact@v4
with:
name: guest-binaries-${{ matrix.config }}
path: |
src\tests\rust_guests\bin\${{ matrix.config }}\callbackguest
src\tests\rust_guests\bin\${{ matrix.config }}\callbackguest.exe
src\tests\rust_guests\bin\${{ matrix.config }}\dummyguest
src\tests\rust_guests\bin\${{ matrix.config }}\simpleguest
src\tests\rust_guests\bin\${{ matrix.config }}\simpleguest.exe
if-no-files-found: error