Skip to content

185 user mode settings #48

185 user mode settings

185 user mode settings #48

Workflow file for this run

name: Dreamos Build
on:
push:
paths-ignore: [ 'docs/**' ]
pull_request:
paths-ignore: [ 'docs/**' ]
jobs:
build-dreamos:
runs-on: ubuntu-latest
steps:
- name: Prepare cache for binaries
uses: actions/cache@v3
id: cached-binaries
with:
path: |
**/gcc-x86_64-cross
key: gcc-binary-toolchains
- name: Install llvm and clang
run: sudo apt install lld llvm
- name: Install nasm
run: sudo apt install nasm
- name: Install mtools
run: sudo apt install mtools
- name: Download gcc
if: steps.cached-binaries.outputs.cache-hit != 'true'
run: >
mkdir toolchains;
wget https://toolchains.bootlin.com/downloads/releases/toolchains/x86-64/tarballs/x86-64--glibc--stable-2022.08-1.tar.bz2 -O toolchains/gcc-x86_64;
cd toolchains;
tar -vxf gcc-x86_64; mv x86-64--glibc--stable-2022.08-1 gcc-x86_64-cross;
- uses: actions/checkout@v4
with:
path: dreamos
- name: Compile with gcc
run: >
PATH=$PATH:$GITHUB_WORKSPACE/toolchains/gcc-x86_64-cross/bin;
cd dreamos;
make clean;
make build
TOOLCHAIN=gcc
IS_WORKFLOW=1
ARCH_PREFIX=x86_64-buildroot-linux-gnu
IMAGE_BASE_NAME=DreamOS64
- name: Compile with clang
run: >
PATH=$PATH:$GITHUB_WORKSPACE/toolchains/gcc-x86_64-cross/bin;
cd dreamos;
make clean;
make build
TOOLCHAIN=clang
IS_WORKFLOW=1
ARCH_PREFIX=x86_64-elf
IMAGE_BASE_NAME=DreamOS64