Skip to content

Support Arm dynamic linking #1029

Support Arm dynamic linking

Support Arm dynamic linking #1029

Workflow file for this run

name: Github Actions

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 13, Col: 9): Unrecognized named-value: 'matrix'. Located at position 2 within expression: (matrix.architecture == 'riscv' && matrix.linking == '1') == false
on: [push, pull_request]
jobs:
host-x86:
runs-on: ubuntu-24.04
strategy:
matrix:
compiler: [gcc, clang]
architecture: [arm, riscv]
dynlink: [0, 1]
if: (matrix.architecture == 'riscv' && matrix.linking == '1') == false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download dependencies
run: |
sudo apt-get update -q -y
sudo apt-get install -q -y graphviz jq
sudo apt-get install -q -y qemu-user
sudo apt-get install -q -y build-essential
- name: Build artifacts
env:
CC: ${{ matrix.compiler }}
run: |
make distclean config ARCH=${{ matrix.architecture }} \
DYNLINK=${{ matrix.dynlink }}
- name: IR regression tests
run: |
make check-snapshot || exit 1
- name: Sanitizer-enabled stage 0 tests
env:
CC: ${{ matrix.compiler }}
run: |
make check-sanitizer || exit 1
- name: Unit tests
run: |
make check || exit 1
host-arm:
runs-on: ubuntu-24.04
strategy:
matrix:
dynlink: [0, 1]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build artifacts
# The GitHub Action for non-x86 CPU
# https://github.com/uraimo/run-on-arch-action
uses: uraimo/run-on-arch-action@v3
with:
arch: armv7
distro: ubuntu24.04
githubToken: ${{ github.token }}
install: |
apt-get update -qq -y
apt-get install -yqq build-essential
run: |
make config ARCH=arm DYNLINK=${{ matrix.dynlink }}
make check-sanitizer || exit 1
make check || exit 1
coding-style:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Coding convention
run: |
sudo apt-get install -q -y clang-format-18
.ci/check-newline.sh
.ci/check-format.sh
shell: bash