From 981c45bbb1e274707de35303c97b8a403d8d4eb0 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sat, 8 Jul 2023 21:02:48 +0200 Subject: [PATCH] add qemu.yml --- .github/workflows/qemu.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/qemu.yml diff --git a/.github/workflows/qemu.yml b/.github/workflows/qemu.yml new file mode 100644 index 00000000000000..e126478535bde1 --- /dev/null +++ b/.github/workflows/qemu.yml @@ -0,0 +1,43 @@ +name: QEMU Emulation + +on: + push: + branches: ['**'] + pull_request: + +jobs: + qemu_job: + # The host should always be Linux + runs-on: ubuntu-22.04 + name: Build on ubuntu-22.04 s390 + steps: + - uses: actions/checkout@v3 + with: + path: repo + - uses: uraimo/run-on-arch-action@v2 + name: Run commands + id: runcmd + with: + arch: s390x + sh: /bin/sh + distro: ubuntu22.04 + + # Not required, but speeds up builds by storing container images in + # a GitHub package registry. + githubToken: ${{ github.token }} + + -name: setup env + run: | + echo "NPROC=$(getconf _NPROCESSORS_ONLN)" >> $GITHUB_ENV + + -name: install dependencies + run: | + apt-get update -q -y + apt-get install build-essential + apt-get build-dep -y vim + + - name: Build Vim + run: | + cd repo/src + ./configure + make -j${NPROC}