Skip to content
Draft
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
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions test/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down