-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (64 loc) · 1.7 KB
/
kernel.yml
File metadata and controls
66 lines (64 loc) · 1.7 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
64
65
66
name: Kernel CI
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build-i686:
name: Build
runs-on: ubuntu-latest
container:
image: ghcr.io/xyrisos/xyris-build/xyris-build:3.5.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
# Debug
- name: 'Build Kernel (Debug)'
run: scons -j$(nproc) kernel-debug
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: i686-debug-xyris.img
path: Distribution/i686/Debug/xyris.img
# Release
- name: 'Build Kernel (Release)'
run: scons -j$(nproc) kernel-release
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: i686-release-xyris.img
path: Distribution/i686/Release/xyris.img
unit-tests:
name: Test
runs-on: ubuntu-latest
container:
image: ghcr.io/xyrisos/xyris-build/xyris-build:3.5.0
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
# Unit Tests
- name: Build and Run Tests
run: |
scons -j$(nproc) tests
./Distribution/Tests/tests -r junit --out Tests/report.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
with:
fail_on_failure: true
report_paths: 'Tests/report.xml'
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
name: tests-report
path: Tests/report.xml