Skip to content

Commit 0ff2cc4

Browse files
committed
Merge branch 'master' of https://github.com/OpenByteDev/fn-ptr
2 parents e76f5eb + 3ca87be commit 0ff2cc4

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ env:
1212
RUSTFLAGS: "--deny warnings"
1313

1414
jobs:
15-
build:
15+
test:
1616
runs-on: ${{ matrix.os }}-latest
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
toolchain: ["beta"]
20+
toolchain: ["stable", "nightly"]
2121
include:
2222
- target: x86_64-unknown-linux-gnu
2323
os: ubuntu
@@ -27,17 +27,31 @@ jobs:
2727
os: windows
2828
- target: aarch64-apple-darwin
2929
os: macos
30+
3031
steps:
31-
- uses: actions/checkout@v4
32+
- uses: actions/checkout@v4
3233

33-
- name: Install latest ${{ matrix.toolchain }}
34-
uses: dtolnay/rust-toolchain@stable
35-
with:
36-
target: ${{ matrix.target }}
34+
- name: Install Rust
35+
uses: dtolnay/rust-toolchain@stable
36+
with:
3737
toolchain: ${{ matrix.toolchain }}
38-
39-
- name: Build
40-
run: cargo build --target ${{ matrix.target }}
38+
target: ${{ matrix.target }}
39+
40+
- name: Build
41+
run: |
42+
if [ "${{ matrix.toolchain }}" = "stable" ]; then
43+
cargo build --target ${{ matrix.target }} --no-default-features
44+
else
45+
cargo build --target ${{ matrix.target }} --all-features
46+
fi
47+
48+
- name: Test
49+
run: |
50+
if [ "${{ matrix.toolchain }}" = "stable" ]; then
51+
cargo test --target ${{ matrix.target }} --no-default-features
52+
else
53+
cargo test --target ${{ matrix.target }} --all-features
54+
fi
4155
4256
documentation:
4357
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)