Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New workflow test #183

Merged
merged 20 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Dreamos Build

on:
push:
branches: [ new_workflow_test ]
pull_request:
branches: [ new_workflow_test ]

jobs:
build-dreamos:

runs-on: ubuntu-latest

steps:

- name: Prepare cache for binaries
uses: actions/cache@v2
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@v2
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

2 changes: 1 addition & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C/C++ CI
name: Dreamos Tests

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ARCH_PREFIX := x86_64-elf
ASM_COMPILER := nasm
QEMU_SYSTEM := qemu-system-x86_64

IS_WORKFLOW ?= 0
IS_WORKFLOW = 0

ifeq ($(TOOLCHAIN), gcc)
X_CC = $(ARCH_PREFIX)-gcc
Expand Down
12 changes: 6 additions & 6 deletions build/Config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# Kernel Configuration

USE_FRAMEBUFFER := 1
SMALL_PAGES := 0
USE_FRAMEBUFFER ?= 1
SMALL_PAGES ?= 0

# Build Configuration

TOOLCHAIN := clang
BUILD_FOLDER := dist
FONT_FOLDER := fonts
TOOLCHAIN ?= clang
BUILD_FOLDER ?= dist
FONT_FOLDER ?= fonts

# Image Base Name

IMAGE_BASE_NAME := DreamOs64
IMAGE_BASE_NAME ?= DreamOs64
Loading