Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Oct 20, 2024
1 parent 299c9a0 commit 7ef9a89
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
checkapply:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: bash -c '[ ! -f shazam.log ] || { cat shazam.log; exit 1; }'

checkpatch:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: fetch all commits
run: git fetch -a origin --unshallow || true
- name: add upstream
run: git remote add upstream -f https://gitlab.com/qemu-project/qemu
- name: checkpatch
run: ./scripts/checkpatch.pl $(git merge-base upstream/master HEAD)..HEAD

# list of make docker-test commands:
# make -pn | tr ' ' '\n' | grep docker-test | sort -u | grep -v ':$'
#
# scripts for every docker-test: ./tests/docker/test-*

build:
needs: checkapply
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container: [alpine,centos9,debian,debian-all-test-cross,debian-arm64-cross,debian-armhf-cross,debian-hexagon-cross,debian-i686-cross,debian-legacy-test-cross,debian-mips64el-cross,debian-mipsel-cross,debian-ppc64el-cross,debian-s390x-cross,debian-tricore-cross,fedora,fedora-rust-nightly,opensuse-leap,ubuntu2204]
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-build
IMAGE=pbolinaro/qemu-ci:${{matrix.container}}
build-clang:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-clang
IMAGE=pbolinaro/qemu-ci:debian-all-test-cross
build-misc:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-misc
IMAGE=pbolinaro/qemu-ci:debian-all-test-cross
build-static:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-static
IMAGE=pbolinaro/qemu-ci:debian-all-test-cross
check-full:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-full
IMAGE=pbolinaro/qemu-ci:debian-all-test-cross
check-full-debug:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: >
make docker-run J=$(nproc) TEST=test-debug
IMAGE=pbolinaro/qemu-ci:debian-all-test-cross

0 comments on commit 7ef9a89

Please sign in to comment.