-
-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (26 loc) · 1.1 KB
/
main.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
name: Test LAI and generate test ISO
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install meson build-essential mtools xorriso acpica-tools
- name: Create tempdir
run: mktemp -d > tempdir
- name: Clone lai_tools
run: cd `cat tempdir` && git clone https://github.com/managarm/lai_tools.git
- name: Symlink lai subproject
run: LAIDIR=`pwd -P` && cd `cat tempdir` && rm -rf lai_tools/subprojects/lai && mkdir -p lai_tools/subprojects && ln -s $LAIDIR lai_tools/subprojects/lai
- name: Build and test lai
run: cd `cat tempdir` && mkdir -p lai_tools/build && cd lai_tools/build && meson .. && ninja && meson test -v
- name: Build test image
run: LAIDIR=`pwd -P` && cd `cat tempdir` && cd lai_tools/boot_image && make clean all && mv lai_test.iso $LAIDIR/
- name: Upload test image
uses: actions/upload-artifact@v1
with:
name: lai_test.iso
path: lai_test.iso