-
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.52 KB
/
build_push.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
name: "Build"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- '*'
- '!ci_test_*'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
- '!ci_test_*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: rustup target add aarch64-unknown-linux-gnu x86_64-unknown-linux-gnu i686-unknown-linux-gnu powerpc-unknown-linux-gnu
- run: RUSTFLAGS="-C target-feature=+neon" cargo build --target aarch64-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: RUSTFLAGS="-C target-feature=+sse4.1" cargo build --target i686-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: cargo build --target powerpc-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: RUSTFLAGS="-C target-feature=+sse4.1" cargo build --target x86_64-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: RUSTFLAGS="-C target-feature=+sse4.1,+f16c" cargo build --target x86_64-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: RUSTFLAGS="-C target-feature=+avx2,+f16c" cargo build --target x86_64-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- run: RUSTFLAGS="-C target-feature=+avx2" cargo build --target x86_64-unknown-linux-gnu --manifest-path ./src/lib/Cargo.toml
- name: Test release pipeline
run: cargo publish --dry-run --manifest-path src/lib/Cargo.toml