Download compiler in CI
Some checks failed
Build / build (push) Failing after 30s

This commit is contained in:
Mathieu Strypsteen 2024-12-25 20:03:32 +01:00
parent d9860e89a7
commit 0b1aa299d6
4 changed files with 16 additions and 2 deletions

1
.clang-format Normal file
View file

@ -0,0 +1 @@
ColumnLimit: 200

View file

@ -7,11 +7,18 @@ jobs:
- name: Install dependencies
run: apt-get update && apt-get install -y clang gcc-multilib llvm mtools parted python3 udev
- name: Install Rustup
run: curl https://sh.rustup.rs | sh -s -- -y
run: echo ${{ github.repository }}
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Download Compiler
uses: forgejo/download-artifact@v4
with:
repository: mathieu/os-rust
name: compiler.zip
- name: test
run: ls
- name: Build
run: . ~/.bashrc && ./build.py
- name: Install cargo-deny

View file

@ -5,6 +5,12 @@ _start:
mov $stack, %rsp
call main
.global syscall
syscall:
mov %rcx, %r10
syscall
ret
.section .bss
.align 16
.skip 0x10000

View file

@ -3,7 +3,7 @@ COMPONENTS:=dispatcher events executer hardware namespace parser resources table
CFILES:=$(foreach comp, $(COMPONENTS), $(wildcard ../acpica/source/components/$(comp)/*.c)) printf.c
OFILES:=$(patsubst %.c, %.o, $(CFILES))
CC:=clang
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
CFLAGS:=--target=x86_64-elf -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fstack-protector-strong -Wall -Werror -O2 -I. -I../acpica/source/include -DACPI_LIBRARY -D__linux__
libacpica.a: $(OFILES)
llvm-ar rcD $@ $^