-
Notifications
You must be signed in to change notification settings - Fork 321
52 lines (49 loc) · 1.48 KB
/
multiarch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# https://github.com/marketplace/actions/run-on-architecture
name: Foreign architectures
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
multiarch:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
include:
- arch: aarch64
distro: ubuntu_latest
cxx_flags: -Wno-psabi
- arch: armv7
distro: ubuntu_latest
cxx_flags: -Wno-psabi
cmake_flags: -DHWY_CMAKE_ARM7:BOOL=ON
- arch: ppc64le
distro: ubuntu_latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and test
uses: uraimo/[email protected]
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
# Not required, but speeds up builds
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y --no-install-recommends \
build-essential \
cmake \
libgtest-dev \
ninja-build \
;
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=2
export CTEST_PARALLEL_LEVEL=2
CXXFLAGS=${{ matrix.cxx_flags }} cmake -GNinja ${{ matrix.cmake_flags }} -DHWY_SYSTEM_GTEST=ON -DHWY_WARNINGS_ARE_ERRORS=ON -B out .
cmake --build out
ctest --test-dir out