add qemu.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |