ci: add riscv64 auto #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: riscv64 lin auto | ||
on: [push, pull_request] | ||
jobs: | ||
riscv64_job: | ||
# The host should always be Linux | ||
runs-on: ubuntu-latest | ||
name: Build on ubuntu-latest riscv64 | ||
steps: | ||
- uses: actions/checkout@v4.1.1 | ||
- uses: uraimo/run-on-arch-action@v2 | ||
name: Run commands | ||
id: runcmd | ||
with: | ||
arch: riscv64 | ||
distro: ubuntu_latest | ||
# Not required, but speeds up builds by storing container images in | ||
# a GitHub package registry. | ||
githubToken: ${{ github.token }} | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y git | ||
apt-get install -q -y autoconf automake libtool | ||
run: | | ||
echo ::set-output name=uname::$(uname -a) | ||
./autogen.sh | ||
./configure | ||
make | ||
make check | ||
sudo make install | ||
sudo make uninstall | ||
- name: Get the output | ||
run: | | ||
echo "The uname output was ${{ steps.runcmd.outputs.uname }}" |