-
Notifications
You must be signed in to change notification settings - Fork 31
31 lines (26 loc) · 843 Bytes
/
avx512.yml
File metadata and controls
31 lines (26 loc) · 843 Bytes
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
name: Build AVX-512
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
rust:
name: Build with AVX-512 features
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@1.90.0
- name: Build
run: cargo build
env:
RUSTFLAGS: "-C target-feature=+avx512ifma,+avx512f,+avx512bw,+avx512vbmi"
# This is necessary to pass the `RUSTFLAGS` only to the compiler
# invocation for the final artifact, but _not_ to previous compiler
# invocations, such as build scripts. See also:
# https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags
CARGO_BUILD_TARGET: "x86_64-unknown-linux-gnu"