Debian Codegraph @

debian/missing-sources/nalgebra/.github/workflows/nalgebra-ci-build.yml

raw symbols SCIP
1 name: nalgebra CI build
2
3 on:
4 push:
5 branches: [main]
6 pull_request:
7 branches: [main]
8
9 env:
10 CARGO_TERM_COLOR: always
11
12 jobs:
13 check-fmt:
14 runs-on: ubuntu-latest
15 steps:
16 - uses: actions/checkout@v4
17 - name: Check formatting
18 run: cargo fmt -- --check
19 clippy:
20 runs-on: ubuntu-latest
21 steps:
22 - uses: actions/checkout@v4
23 - name: Install clippy
24 run: rustup component add clippy
25 - name: Run clippy
26 run: cargo clippy
27 build-nalgebra:
28 runs-on: ubuntu-latest
29 # env:
30 # RUSTFLAGS: -D warnings
31 steps:
32 - uses: actions/checkout@v4
33 - name: Build --no-default-feature
34 run: cargo build --no-default-features;
35 - name: Build (default features)
36 run: cargo build;
37 - name: Build --features serde-serialize
38 run: cargo build --features serde-serialize
39 - name: Check nalgebra-lapack
40 run: cd nalgebra-lapack; cargo check --features serde-serialize;
41 - name: Build nalgebra-sparse --no-default-features
42 run: cd nalgebra-sparse; cargo build --no-default-features;
43 - name: Build nalgebra-sparse (default features)
44 run: cd nalgebra-sparse; cargo build;
45 - name: Build nalgebra-sparse --all-features
46 run: cd nalgebra-sparse; cargo build --all-features;
47 # Run this on it’s own job because it alone takes a lot of time.
48 # So it’s best to let it run in parallel to the other jobs.
49 build-nalgebra-all-features:
50 runs-on: ubuntu-latest
51 steps:
52 - uses: actions/checkout@v4
53 - run: cargo build --all-features;
54 - run: cargo build -p nalgebra-glm --all-features;
55 check-nalgebra-msrv:
56 runs-on: ubuntu-latest
57 env:
58 RUSTFLAGS: -D warnings
59 steps:
60 - name: Select rustc version
61 uses: actions-rs/toolchain@v1
62 with:
63 toolchain: 1.87.0
64 override: true
65 - uses: actions/checkout@v4
66 - name: check
67 run: cargo check --all-targets --features arbitrary,rand,serde-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests,rkyv-safe-deser,rayon;
68 test-nalgebra:
69 runs-on: ubuntu-latest
70 # env:
71 # RUSTFLAGS: -D warnings
72 steps:
73 # Tests are run with a specific version of the compiler to avoid
74 # trybuild errors when a new compiler version is out. This can be
75 # bumped as needed after running the tests with TRYBUILD=overwrite
76 # to re-generate the error reference.
77 - name: Select rustc version
78 uses: actions-rs/toolchain@v1
79 with:
80 toolchain: 1.87.0
81 override: true
82 - uses: actions/checkout@v4
83 - name: test
84 run: cargo test --features arbitrary,rand,serde-serialize,sparse,debug,io,compare,libm,proptest-support,slow-tests,rkyv-safe-deser,rayon;
85 test-nalgebra-glm:
86 runs-on: ubuntu-latest
87 steps:
88 - uses: actions/checkout@v4
89 - name: test nalgebra-glm
90 run: cargo test -p nalgebra-glm --features arbitrary,serde-serialize;
91 test-nalgebra-sparse:
92 runs-on: ubuntu-latest
93 steps:
94 - uses: actions/checkout@v4
95 - name: test nalgebra-sparse
96 # Manifest-path is necessary because cargo otherwise won't correctly forward features
97 # We increase number of proptest cases to hopefully catch more potential bugs
98 run: PROPTEST_CASES=10000 cargo test --manifest-path=nalgebra-sparse/Cargo.toml --features compare,proptest-support,io,serde-serialize
99 - name: test nalgebra-sparse (slow tests)
100 # Unfortunately, the "slow-tests" take so much time that we need to run them with --release
101 run: PROPTEST_CASES=10000 cargo test --release --manifest-path=nalgebra-sparse/Cargo.toml --features compare,proptest-support,io,serde-serialize,slow-tests slow
102 test-nalgebra-macros:
103 runs-on: ubuntu-latest
104 steps:
105 - uses: actions/checkout@v4
106 - name: test nalgebra-macros
107 run: cargo test -p nalgebra-macros
108 test-nalgebra-lapack:
109 runs-on: ubuntu-latest
110 steps:
111 - uses: actions/checkout@v4
112 - name: test nalgebra-lapack
113 run: cargo test -p nalgebra-lapack --features proptest-support;
114 build-wasm:
115 runs-on: ubuntu-latest
116 # env:
117 # RUSTFLAGS: -D warnings
118 steps:
119 - uses: actions/checkout@v4
120 - run: rustup target add wasm32-unknown-unknown
121 - name: build nalgebra
122 run: cargo build --verbose --target wasm32-unknown-unknown;
123 - name: build nalgebra-glm
124 run: cargo build -p nalgebra-glm --verbose --target wasm32-unknown-unknown;
125 build-no-std:
126 runs-on: ubuntu-latest
127 steps:
128 - uses: actions/checkout@v4
129 - name: Install latest stable
130 uses: dtolnay/rust-toolchain@master
131 with:
132 toolchain: stable
133 targets: "x86_64-unknown-none,thumbv7em-none-eabihf"
134 - name: build x86_64-unknown-none
135 run: cargo build --verbose --no-default-features --target=x86_64-unknown-none
136 - name: build x86_64-unknown-none --features rand-no-std
137 run: cargo build --verbose --no-default-features --features rand-no-std --target=x86_64-unknown-none
138 - name: build x86_64-unknown-none --features alloc
139 run: cargo build --verbose --no-default-features --features alloc --target=x86_64-unknown-none
140 - name: build thumbv7em-none-eabihf
141 run: cargo build --verbose --no-default-features --target=thumbv7em-none-eabihf
142 - name: build x86_64-unknown-none nalgebra-glm
143 run: cargo build --verbose --no-default-features -p nalgebra-glm --target=x86_64-unknown-none
144 - name: build thumbv7em-none-eabihf nalgebra-glm
145 run: cargo build --verbose --no-default-features -p nalgebra-glm --target=thumbv7em-none-eabihf
146 docs:
147 runs-on: ubuntu-latest
148 steps:
149 - uses: actions/checkout@v4
150 - name: Generate documentation
151 run: cargo doc