Add curl for QEMU #3
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 | |
on: [push] | |
jobs: | |
build: | |
name: Test on QEMU ${{ matrix.arch }} and ${{ matrix.distro }} | |
# The host should always be linux | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
include: | |
- arch: aarch64 | |
distro: ubuntu20.04 | |
- arch: aarch64 | |
distro: ubuntu22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: uraimo/run-on-arch-action@v2 | |
with: | |
arch: ${{ matrix.arch }} | |
distro: ${{ matrix.distro }} | |
# Not required, but speeds up builds | |
githubToken: ${{ github.token }} | |
# Install some dependencies in the container. This speeds up builds if | |
# you are also using githubToken. Any dependencies installed here will | |
# be part of the container image that gets cached, so subsequent | |
# builds don't have to re-install them. The image layer is cached | |
# publicly in your project's package repository, so it is vital that | |
# no secrets are present in the container state or logs. | |
install: | | |
case "${{ matrix.distro }}" in | |
ubuntu*|jessie|stretch|buster|bullseye) | |
apt-get update -q -y | |
apt-get install -q -y git curl | |
;; | |
fedora*) | |
dnf -y update | |
dnf -y install git curl | |
;; | |
alpine*) | |
apk update | |
apk add curl | |
;; | |
esac | |
run: ./install.sh |