Skip to content

Adding a continuous integration workflow for Github. #18

Adding a continuous integration workflow for Github.

Adding a continuous integration workflow for Github. #18

Workflow file for this run

# See ci.yml.tabs for the properly indented version if you are having trouble seeing the indentation in this file.
# This version is only for Github to parse.
name: DFPSR tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [armv6, armv7, armv8, armv9, x86_32, x86_64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize
if: startsWith(matrix.architecture, 'arm')
run: |
sudo apt-get update
sudo apt-get install -y qemu
- name: Run tests
run: |
cd ./Source
if [[ "${{ matrix.architecture }}" == "armv6" ]]; then
qemu-arm -L /usr/arm-linux-gnueabi ./test.sh
elif [[ "${{ matrix.architecture }}" == "armv7" ]]; then
qemu-arm -L /usr/arm-linux-gnueabi ./test.sh
elif [[ "${{ matrix.architecture }}" == "armv8" ]]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu ./test.sh
elif [[ "${{ matrix.architecture }}" == "armv9" ]]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu ./test.sh
elif [[ "${{ matrix.architecture }}" == "x86_32" ]]; then
./test.sh
elif [[ "${{ matrix.architecture }}" == "x86_64" ]]; then
./test.sh
fi