Skip to content

Update build.yml

Update build.yml #11

Workflow file for this run

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
uses: egor00f/install-kolibrios-toolchain-action@v1.0.2
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}}