-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.33 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
51
name: Test build
on:
push:
branches: [
"stable",
"dev-stable"
]
pull_request:
branches: [
"stable",
"dev-stable"
]
env:
BUILD_TYPE: Release
jobs:
installPrograms:
runs-on: ubuntu-latest
steps:
- name: Install wget
run: sudo apt install wget
- name: Istall 7z
run: sudo apt install p7zip-full
- name: Install cmake
run: sudo apt install cmake && cmake --version
- name: Install fasm
run: sudo apt install fasm
- name: Install kos32-gcc toolchain
working-directory: ~/
run: git clone https://github.com/Egor00f/kolibrios-gcc-toolchain.git && cd kolibrios-gcc-toolchain && chmod u+x install && ./install
build:
runs-on: ubuntu-latest
needs: installPrograms
steps:
- name: Checkout
uses: actions/checkout@v4.2.0
- 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}}