Skip to content

Commit 169d6b5

Browse files
committed
github: update workflow to build libkrun from source
Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
1 parent 7b66479 commit 169d6b5

2 files changed

Lines changed: 36 additions & 2 deletions

File tree

.github/workflows/unit_tests-aarch64-darwin.yaml renamed to .github/workflows/unit_tests-brew-aarch64-darwin.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Build & Test
1+
name: Build & Test (Homebrew)
22
on: [pull_request, create]
33

44
jobs:
55
build:
66
if: github.event_name == 'pull_request'
7-
name: Build & Test
7+
name: Build & Test (Homebrew)
88
runs-on: macos-latest
99
steps:
1010
- name: Code checkout
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build & Test (Source)
2+
on: [pull_request, create]
3+
4+
jobs:
5+
build:
6+
if: github.event_name == 'pull_request'
7+
name: Build & Test (Source)
8+
runs-on: macos-latest
9+
steps:
10+
- name: Code checkout
11+
uses: actions/checkout@v2
12+
- name: Install Rust toolchain
13+
uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
17+
- name: Set up Homebrew
18+
id: set-up-homebrew
19+
uses: Homebrew/actions/setup-homebrew@master
20+
21+
- name: Install dependencies
22+
run: brew tap slp/krunkit && brew install virglrenderer clang-format
23+
24+
- name: Clone libkrun source
25+
run: git clone https://www.github.com/containers/libkrun.git ~/libkrun
26+
27+
- name: Build libkrun source
28+
run: cd ~/libkrun && make EFI=1 NET=1 BLK=1 GPU=1 && sudo make EFI=1 NET=1 BLK=1 GPU=1 install && cd ~/
29+
30+
- name: Build
31+
run: make LIBKRUN_EFI=/usr/local/lib/libkrun-efi.dylib
32+
33+
- name: Test
34+
run: cargo test --release --verbose -- --show-output

0 commit comments

Comments
 (0)