-
Notifications
You must be signed in to change notification settings - Fork 58
96 lines (77 loc) · 2.94 KB
/
Copy patharchitectures.yml
File metadata and controls
96 lines (77 loc) · 2.94 KB
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
name: Supported Architectures
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
supported-architectures:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-generic
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
config: target.x86_64-unknown-linux-gnu.rustflags=["-C", "target-cpu=x86-64"]
- name: linux-avx2
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
config: target.x86_64-unknown-linux-gnu.rustflags=["-C", "target-cpu=x86-64-v3"]
- name: linux-avx512
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
config: target.x86_64-unknown-linux-gnu.rustflags=["-C", "target-cpu=x86-64-v4", "-C", "target-feature=+gfni,+avx512bw,+avx512vl,+avx512vbmi,+avx512vbmi2,+avx512vnni,+avx512bitalg"]
- name: windows-generic
os: windows-latest
target: x86_64-pc-windows-msvc
config: target.x86_64-pc-windows-msvc.rustflags=["-C", "target-cpu=x86-64"]
- name: windows-avx2
os: windows-latest
target: x86_64-pc-windows-msvc
config: target.x86_64-pc-windows-msvc.rustflags=["-C", "target-cpu=x86-64-v3"]
- name: windows-avx512
os: windows-latest
target: x86_64-pc-windows-msvc
config: target.x86_64-pc-windows-msvc.rustflags=["-C", "target-cpu=x86-64-v4", "-C", "target-feature=+gfni,+avx512bw,+avx512vl,+avx512vbmi,+avx512vbmi2,+avx512vnni,+avx512bitalg"]
- name: macos
os: macos-latest
target: ""
config: build.rustflags=["-C", "target-cpu=native"]
name: ${{ matrix.name }}
steps:
- uses: actions/checkout@v5
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Check supported architecture
shell: bash
run: |
if [ -n "${TARGET}" ]; then
cargo check --verbose --target "${TARGET}" --config "${CONFIG}" --no-default-features
else
cargo check --verbose --config "${CONFIG}" --no-default-features
fi
env:
TARGET: ${{ matrix.target }}
CONFIG: ${{ matrix.config }}
wasm32:
runs-on: ubuntu-latest
name: wasm32
steps:
- uses: actions/checkout@v5
- name: Setup Rust nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: wasm32-unknown-unknown
components: rust-src
- name: Install wasm tools
run: |
curl -sSL https://github.com/WebAssembly/binaryen/releases/download/version_130/binaryen-version_130-x86_64-linux.tar.gz | tar xz
echo "$PWD/binaryen-version_130/bin" >> $GITHUB_PATH
cargo install wasm-bindgen-cli --version 0.2.123
- name: Build wasm32
run: make wasm