Skip to content
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
Binary file removed .DS_Store
Binary file not shown.
30 changes: 16 additions & 14 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@ name: Makefile CI

on:
push:
branches: [ "main" ]
paths:
- 'Makefile'
- 'build.sh'
- 'src/**'
- '.github/workflows/makefile.yml'
pull_request:
branches: [ "main" ]
paths:
- 'Makefile'
- 'build.sh'
- 'src/**'
- '.github/workflows/makefile.yml'

jobs:
build:
Expand All @@ -21,26 +29,20 @@ jobs:

- name: Download and install i686-elf toolchain
run: |
curl -L https://github.com/mitchellh/gcc-i686-elf/releases/download/v1.0.0/i686-elf-ubuntu.tar.gz -o toolchain.tar.gz
mkdir -p $HOME/toolchain
tar -xzf toolchain.tar.gz -C $HOME/toolchain
echo "$HOME/toolchain/i686-elf/bin" >> $GITHUB_PATH
curl -L https://github.com/lordmilko/i686-elf-tools/releases/download/13.2.0/i686-elf-tools-linux.zip -o i686-elf-tools-linux.zip
mkdir $HOME/i686-elf-tools
unzip i686-elf-tools-linux.zip -d $HOME/i686-elf-tools
echo "$HOME/i686-elf-tools/bin" >> $GITHUB_PATH

- name: Verify toolchain
run: |
i686-elf-gcc --version
i686-elf-as --version

- name: Build project
run: make

- name: Run distcheck
run: make distcheck

- name: Prepare output
run: |
mkdir -p bin
cp os.bin bin/os.bin
chmod +x build.sh
./build.sh

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.qodo
.DS_Store
bin/*.bin
build/*.o
build/**/.o
Empty file added build/disk/.keep
Empty file.
Empty file added build/fs/.keep
Empty file.
Empty file added build/string/.keep
Empty file.