-
Notifications
You must be signed in to change notification settings - Fork 41
56 lines (47 loc) · 1.57 KB
/
cross.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
53
54
55
56
name: Cross-Compilation CI
on:
push:
branches:
- master
workflow_dispatch:
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
# Test big and little-endian architectures, 32-bit and 64-bit
- arm64-unknown-linux-gnu
- arm64eb-unknown-linux-gnu
- mipsel-unknown-linux-gnu
- mips-unknown-linux-gnu
- riscv64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install xcross==0.1.7
- name: Configure
run: xcross --target ${{ matrix.target }}
cmake -Ssubproject/test -Bbuild/test
-DCMAKE_BUILD_TYPE:STRING=Debug
- name: Build
run: xcross --target ${{ matrix.target }}
cmake --build build/test --config Debug
- name: Test
run: |
cd build/test
xcross --target ${{ matrix.target }} run ./test_all_shorter_interval_cases
xcross --target ${{ matrix.target }} run ./uniform_random_test
xcross --target ${{ matrix.target }} run ./verify_compressed_cache
xcross --target ${{ matrix.target }} run ./verify_fast_multiplication
xcross --target ${{ matrix.target }} run ./verify_log_computation
xcross --target ${{ matrix.target }} run ./verify_magic_division