aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarvin Borner2021-04-28 23:05:23 +0200
committerMarvin Borner2021-04-28 23:05:23 +0200
commit7a517df706a35e2e16637395d8ff6122b2129bd4 (patch)
tree3e14bb22db156c3d8fdae6f581adcf82cb4fc211 /.github
Initial commitHEADmain
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..d674b81
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,29 @@
+name: Project build and test
+
+on: push
+
+jobs:
+ build-and-test:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Install
+ run: sudo apt-get update && sudo apt-get install -y build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo curl nasm grub-common qemu qemu-kvm mtools
+ - name: Get cross compiler
+ id: cache-cross
+ uses: actions/cache@v1
+ with:
+ path: cross
+ key: toller-compiler
+ - name: Build cross compiler
+ if: steps.cache-cross.outputs.cache-hit != 'true'
+ run: sh run cross -y
+ - name: Build
+ run: sh run build -y
+ - name: Upload as artifact
+ uses: actions/upload-artifact@v2
+ with:
+ name: disk-img
+ path: build/disk.img