-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.15 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
name: Test build
on:
push:
branches: [
"stable",
"dev-stable"
]
pull_request:
branches: [
"stable",
"dev-stable"
]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install Toolchain
uses: Egor00f/install-kolibrios-toolchain-action@v1.1
- name: Install depends
run: sudo apt install fasm
- name: KolibriOS repo
run: |
cd ${{ github.workspace }}/../
git clone https://git.kolibrios.org/KolibriOS/kolibrios.git
- name: Configure CMake
run: |
cd ${{ github.workspace }}
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/cmake/toolchain.cmake
- name: Build
run: cmake --build ${{ github.workspace }}/build --target all --config ${{env.BUILD_TYPE}}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: ${{ github.workspace }}/build