From d661d354a192651546d007bb657cceb3f95f5064 Mon Sep 17 00:00:00 2001 From: Jose Martins Date: Sat, 30 Sep 2023 15:54:11 +0100 Subject: [PATCH] feat(ci): add build test github action Signed-off-by: Jose Martins --- .github/workflows/build-arm.yaml | 30 ++++++++++++++++++++++++++++++ .github/workflows/build-riscv.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/workflows/build-arm.yaml create mode 100644 .github/workflows/build-riscv.yaml diff --git a/.github/workflows/build-arm.yaml b/.github/workflows/build-arm.yaml new file mode 100644 index 000000000..039e26dac --- /dev/null +++ b/.github/workflows/build-arm.yaml @@ -0,0 +1,30 @@ +name: Arm Build + +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +jobs: + + build-arm: + runs-on: ubuntu-latest + container: baoproject/bao:latest + strategy: + matrix: + platform: [ + "fvp-a", + "fvp-a-aarch32", + "fvp-r", + "fvp-r-aarch32" + ] + gic: [ + "GICV2", + "GICV3", + ] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - run: make PLATFORM=${{ matrix.platform }} GIC_VERSION=${{ matrix.gic }} CONFIG=null diff --git a/.github/workflows/build-riscv.yaml b/.github/workflows/build-riscv.yaml new file mode 100644 index 000000000..157af61aa --- /dev/null +++ b/.github/workflows/build-riscv.yaml @@ -0,0 +1,27 @@ +name: RISC-V Build + +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +jobs: + + build-arm: + runs-on: ubuntu-latest + container: baoproject/bao:latest + strategy: + matrix: + platform: [ + "qemu-riscv64-virt", + ] + irqc: [ + "PLIC", + "APLIC", + ] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - run: make PLATFORM=${{ matrix.platform }} IRQC=${{ matrix.irqc }} CONFIG=null