From b0e4f45a7706ae44a89a91d84a7e1c3fe0392f2c Mon Sep 17 00:00:00 2001 From: Alan Jian Date: Wed, 27 Mar 2024 21:52:30 +0800 Subject: [PATCH] Add GitHub workflow configurations --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f12ce92 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install gcc-riscv64-unknown-elf + - name: Make + run: make CROSS_PREFIX=gcc-riscv64-unknown-elf- + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: kernel.elf + path: build/kernel.elf