-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (28 loc) · 934 Bytes
/
build.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
name: OS-kernel CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker development environment
run: docker build buildenv -t myos-buildenv
- name: Start the Docker container
run: docker run --name myos-buildenv --rm -it -d -v "$(pwd)":/root/env myos-buildenv
- name: Build the kernel
run: docker exec -d myos-buildenv make build-x86_64
- name: Sleep for 10 seconds
run: sleep 10s
- name: Stop the Docker container
run: docker stop myos-buildenv
- name: Clean the development environment
run: docker rmi myos-buildenv -f
- name: Upload the kernel image to GitHub Actions
uses: actions/[email protected]
with:
name: kernel
path: dist/x86_64/kernel.iso