aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml17
-rw-r--r--src/kernel/kernel.c3
2 files changed, 8 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7cb3746..45001da 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -4,13 +4,15 @@ on: push
jobs:
build:
+ paths:
+ - 'src/**'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install
- run: sudo apt-get update && sudo apt-get install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libcloog-isl-dev libisl-0.18-dev ccache curl nasm genisoimage qemu qemu-kvm mtools
+ run: sudo apt-get update && sudo apt-get install -y build-essential ccache curl nasm genisoimage qemu qemu-kvm mtools
- name: Get cross compiler
id: cache-cross
uses: actions/cache@v1
@@ -19,17 +21,10 @@ jobs:
key: ${{ runner.os }}-cross
- name: Build cross compiler
if: steps.cache-cross.outputs.cache-hit != 'true'
- run: sh run cross
+ run: |
+ sudo apt-get install -y bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libcloog-isl-dev libisl-0.18-dev curl
+ sh run cross
- name: Build
run: sh run build
- name: Test install
run: sh run image
- - name: Release
- uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
- with:
- files: build/melvix.iso
- name: Melvix Weekly Release
- prerelease: 1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c
index e5cb666..5eadbb1 100644
--- a/src/kernel/kernel.c
+++ b/src/kernel/kernel.c
@@ -67,4 +67,5 @@ void kernel_main(uint32_t initial_stack)
panic("This should NOT happen!");
// asm ("div %0" :: "r"(0)); // Exception testing x/0
-} \ No newline at end of file
+}
+