-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (40 loc) · 1.73 KB
/
no-default-features.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
name: No Default Features
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
# Cancel the workflow if a new one is triggered from the same PR, branch, or tag, except on main.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
no-default-features:
name: "No Default Features on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: stable
target: i686-unknown-linux-gnu
- name: Using stable toolchain build the library and run the tests without default features
run: cargo +stable test --no-default-features -- --skip test_conformance
- name: Using stable toolchain build the library without default features for 32-bit target
if: runner.os == 'Linux'
run: cargo +stable check --target --target i686-unknown-linux-gnu --no-default-features
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: nightly
target: i686-unknown-linux-gnu
- name: Using nightly toolchain build the library and run the tests without default features
run: cargo +nightly test --no-default-features -- --skip test_conformance
- name: Using nightly toolchain build the library without default features for 32-bit target
if: runner.os == 'Linux'
run: cargo +nightly check --target --target i686-unknown-linux-gnu --no-default-features