Repository navigation
63 lines (58 loc) · 1.95 KB
/
Copy pathlinux.yml
File metadata and controls
63 lines (58 loc) · 1.95 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
name: Build on Ubuntu Latest
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# Beautifies the output
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Install all Dependencies
run: |
sudo apt update
sudo apt install -y python3 mtools dosfstools
python3 -m pip install xbstrap toml
- run: python y.py setup
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Build the kernel
run: |
python y.py build --config .github/workflows/CI.toml --minimal-toolchain
- name: Upload the .img file
uses: actions/upload-artifact@v2
with:
name: Esque
path: ./build/esque-m.img
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Install all Dependencies
run: |
sudo apt update
sudo apt install -y python3 mtools dosfstools qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
python3 -m pip install xbstrap toml
- run: python y.py clean
- run: python y.py setup
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
- name: Test the kernel
run: |
python y.py ci --config .github/workflows/CI.toml --minimal-toolchain