The action is triggered on push to master or when the label "hw-build" is present on pull requests. Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
# Copyright 2021, Proofcraft Pty Ltd
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
# sel4test simulation runs
|
|
#
|
|
# See sel4test-sim/builds.yml in the repo seL4/ci-actions for configs.
|
|
|
|
name: seL4Test
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
types: [opened, reopened, synchronize, labeled]
|
|
|
|
jobs:
|
|
sim:
|
|
name: Simulation
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
march: [armv6a, armv7a, armv8a, nehalem, rv32imac, rv64imac]
|
|
compiler: [gcc, clang]
|
|
exclude:
|
|
- march: rv32imac
|
|
compiler: clang
|
|
- march: rv64imac
|
|
compiler: clang
|
|
steps:
|
|
- uses: seL4/ci-actions/sel4test-sim@master
|
|
with:
|
|
march: ${{ matrix.march }}
|
|
compiler: ${{ matrix.compiler }}
|
|
|
|
hw-build:
|
|
name: HW Build
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.name == 'push' ||
|
|
contains(github.event.pull_request.labels.*.name, 'hw-build') }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
march: [armv6a, armv7a, armv8a, nehalem]
|
|
compiler: [gcc, clang]
|
|
include:
|
|
- march: rv64imac
|
|
compiler: gcc
|
|
steps:
|
|
- name: Build
|
|
uses: seL4/ci-actions/sel4test-hw@master
|
|
with:
|
|
march: ${{ matrix.march }}
|
|
compiler: ${{ matrix.compiler }}
|
|
- name: Upload images
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: images-${{ matrix.march }}-${{ matrix.compiler }}
|
|
path: '*-images.tar.gz'
|