-
Notifications
You must be signed in to change notification settings - Fork 70
112 lines (87 loc) · 2.87 KB
/
main.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
x86:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
- name: Check formatting
run: cargo fmt --all -- --check
if: matrix.rust == 'stable'
- name: Build with minimal features (no_std)
run: cargo build --verbose --no-default-features --features no-std-float
- name: Run tests for tiny-skia-path
working-directory: path
run: cargo test --verbose
- name: Run tests without SIMD
run: cargo test --verbose --no-default-features --features png-format
- name: Run tests with SSE2
env:
RUSTFLAGS: -Ctarget-feature=+sse2
run: cargo test
- name: Run tests with SSE4.1
env:
RUSTFLAGS: -Ctarget-feature=+sse4.1
run: cargo test
- name: Run tests with AVX
env:
RUSTFLAGS: -Ctarget-feature=+avx
run: cargo test
- name: Run tests with AVX2
env:
RUSTFLAGS: -Ctarget-feature=+avx2
run: cargo test
wasm:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: wasm32-wasi
- name: Install wasmtime
run: |
curl https://wasmtime.dev/install.sh -sSf | bash
echo "$HOME/.wasmtime/bin" >> $GITHUB_PATH
- name: Build with minimal features (no_std)
run: cargo build --target wasm32-wasi --verbose --no-default-features --features no-std-float
- name: Run tests without SIMD
run: cargo test --target wasm32-wasi --verbose --no-default-features --features png-format
- name: Run tests with SIMD128
env:
RUSTFLAGS: -Ctarget-feature=+simd128,+bulk-memory,+nontrapping-fptoint,+sign-ext
run: cargo test --target wasm32-wasi
aarch64:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
target: aarch64-unknown-linux-gnu
- name: Install cross
run: cargo install cross
- name: Build with minimal features (no_std)
run: cross build --target aarch64-unknown-linux-gnu --verbose --no-default-features --features no-std-float
- name: Run tests without SIMD
run: cross test --target aarch64-unknown-linux-gnu --verbose --no-default-features --features png-format
- name: Run tests with Neon
run: cross test --target aarch64-unknown-linux-gnu
- name: Rust tests on PowerPC (big endian)
run: cross test --target powerpc-unknown-linux-gnu