Skip to content

Adding a continuous integration workflow for Github. #3

Adding a continuous integration workflow for Github.

Adding a continuous integration workflow for Github. #3

Workflow file for this run

# See ci.yml.tabs for the properly indented version if you are having trouble reading this file.
# This file is only intended for being parsed by Github.
name: CI Workflow
on:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [armv6, armv7, armv8, armv9, x86_32, x86_64]
steps:
- name: Checkout code
uses: actions/checkout@v2

Check failure on line 14 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
- name: Set up QEMU for ARM emulation
if: startsWith(matrix.architecture, 'arm')
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Run tests
run: |
if [[ "${{ matrix.architecture }}" == "armv6" ]]; then
qemu-arm -L /usr/arm-linux-gnueabi ../../Source/test.sh
elif [[ "${{ matrix.architecture }}" == "armv7" ]]; then
qemu-arm -L /usr/arm-linux-gnueabi ../../Source/test.sh
elif [[ "${{ matrix.architecture }}" == "armv8" ]]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu ../../Source/test.sh
elif [[ "${{ matrix.architecture }}" == "armv9" ]]; then
qemu-aarch64 -L /usr/aarch64-linux-gnu ../../Source/test.sh
elif [[ "${{ matrix.architecture }}" == "x86_32" ]]; then
../../Source/test.sh
elif [[ "${{ matrix.architecture }}" == "x86_64" ]]; then
../../Source/test.sh
fi