From 9701458a621fe9a74b17995311b30f0f793a7719 Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Fri, 11 Dec 2020 13:27:54 +0100 Subject: [PATCH 1/2] CI build using GitHub Actions. --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..435527d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build + +on: [push, pull_request] + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04] + target: [c, x86, arm, m68k, riscv, pdp11] + include: + - target: x86 + sys: linux + - target: arm + sys: linux + - target: m68k + sys: linux + - target: riscv + sys: linux + - target: pdp11 + sys: unix + name: Build + steps: + - uses: actions/checkout@v2 + - name: Install + env: + TARGET: ${{matrix.target}} + OS: ${{matrix.sys}} + M32: "-m32" + run: M32=-m32 sh -e test/install-deps.sh install_linux + - name: Build + env: + TARGET: ${{matrix.target}} + OS: ${{matrix.sys}} + run: make check M32=-m32 TARGET=$TARGET OS=$OS From 834867eaa5c881010eede539aafafb126fdb68bc Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Fri, 11 Dec 2020 13:43:16 +0100 Subject: [PATCH 2/2] QEMU now has support for RISC-V. --- test/install-deps.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/install-deps.sh b/test/install-deps.sh index 22526a3..898aadf 100755 --- a/test/install-deps.sh +++ b/test/install-deps.sh @@ -50,10 +50,10 @@ download_apout() { } download_riscv_qemu() { - qemu=http://github.com/riscv/riscv-qemu - git clone $qemu - (cd riscv-qemu && git submodule update --init pixman && - ./configure --target-list=riscv32-linux-user && make) + sudo apt-get install ninja-build + qemu=http://github.com/qemu/qemu + git clone $qemu riscv-qemu + (cd riscv-qemu && ./configure --target-list=riscv32-linux-user && make) } install_osx() {