Skip to content

added sve

added sve #65

Workflow file for this run

permissions: read-all
name: Build Graviton
on:
push:
branches:
- '*'
- '!ci_test_*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
- '!ci_test_*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
clang_graviton:
name: Build Graviton
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu_latest
cxx_flags: -Wno-psabi
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # cannot be block - runner does git checkout
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.0.0
- name: Build and test
uses: uraimo/run-on-arch-action@v2.7.1
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
# Not required, but speeds up builds
githubToken: ${{ github.token }}
setup: |
mkdir -p "${PWD}/artifacts"
dockerRunArgs: |
--volume "${PWD}/artifacts:/artifacts"
env: |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
install: |
apt-get update -q -y
apt-get install -q -y --no-install-recommends \
build-essential \
cmake \
ninja-build clang-15 \
git \
;
apt-get reinstall -y ca-certificates
update-ca-certificates
run: |
export GIT_SSL_NO_VERIFY=1
git config --global http.sslverify false
git clone --branch widen_mul https://token:${GITHUB_TOKEN}@github.com/awxkee/highway
export CMAKE_BUILD_PARALLEL_LEVEL=2
export CTEST_PARALLEL_LEVEL=2
cmake -G "Ninja" \
-DCMAKE_TOOLCHAIN_FILE=toolchain/graviton.cmake \
-DBUILD_SHARED=ON \
-B out .
ninja -j 8 -C out
ctest --test-dir out
cp out/libsparkyuv.so libsparkyuv.so
tar -czf libsparkyuv.linux-graviton-v2.tar.gz libsparkyuv.so include
cp libsparkyuv.linux-graviton-v2.tar.gz "/artifacts/libsparkyuv.linux-graviton-v2.tar.gz"
- name: Upload built graviton library
uses: actions/upload-artifact@v4
id: artifact-linux-graviton-v2
with:
name: libsparkyuv.linux-graviton-v2.tar.gz
path: libsparkyuv.linux-graviton-v2.tar.gz