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 18, 2024
1 parent 2d756d1 commit 90b1862
Showing 1 changed file with 105 additions and 0 deletions.
105 changes: 105 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
on: push

# For personal repositories, limit workflow runs using:
#
#on:
# push:
# branches:
# - master
#
#concurrency:
# group: ${{ github.workflow }}
# 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-riscv64-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-test-build@${{matrix.container}} J=$(nproc)

build-clang:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-clang@debian-all-test-cross J=$(nproc)

build-misc:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-misc@debian-all-test-cross J=$(nproc)

build-static:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-static@debian-all-test-cross J=$(nproc)

check-tcg:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-tcg@debian-all-test-cross J=$(nproc)

check-full:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-full@debian-all-test-cross J=$(nproc)

check-full-debug:
needs: checkapply
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- run: pip install meson
- run: make docker-test-debug@debian-all-test-cross J=$(nproc)

0 comments on commit 90b1862

Please sign in to comment.