tangled
alpha
login
or
join now
angrydutchman.peedee.es
/
plcbundle-rs
forked from
atscan.net/plcbundle-rs
0
fork
atom
High-performance implementation of plcbundle written in Rust
0
fork
atom
overview
issues
pulls
pipelines
Enhance build workflow
tree.fail
3 months ago
74f61eeb
53bf1661
+23
-5
1 changed file
expand all
collapse all
unified
split
.tangled
workflows
build.yml
+23
-5
.tangled/workflows/build.yml
···
1
1
# Build workflow - test compilation on pull requests
2
2
3
3
when:
4
4
-
- event: ["push", "pull_request"]
4
4
+
- event: ["push", "pull_request", "manual"]
5
5
branch: ["main", "develop"]
6
6
7
7
engine: "nixery"
8
8
+
9
9
+
clone:
10
10
+
skip: false
11
11
+
depth: 1
12
12
+
submodules: false
8
13
9
14
dependencies:
10
15
nixpkgs:
···
12
17
- gcc
13
18
- git
14
19
- zstd
20
20
+
- pkg-config
21
21
+
- libssl
15
22
16
23
environment:
17
17
-
# Example env vars; adjust if you need custom toolchain flags
18
24
RUST_BACKTRACE: "1"
25
25
+
# Force reproducible builds in CI
26
26
+
CARGO_TERM_COLOR: "always"
19
27
20
28
steps:
21
29
- name: "Download dependencies"
22
30
command: |
31
31
+
# Ensure cargo registry is populated
23
32
cargo fetch
24
33
25
25
-
- name: "Run tests"
34
34
+
- name: "Format check"
26
35
command: |
27
27
-
# Run tests with all features to ensure feature-flag coverage
36
36
+
cargo fmt -- --check || true
37
37
+
38
38
+
- name: "Run clippy"
39
39
+
command: |
40
40
+
# Run clippy but don't fail workflow on warnings to avoid flakiness;
41
41
+
# change to `-- -D warnings` to enforce later.
42
42
+
cargo clippy --all-features -- -D clippy::unwrap_used || true
43
43
+
44
44
+
- name: "Run tests (all features)"
45
45
+
command: |
28
46
cargo test --all-features -- --nocapture
29
47
30
30
-
- name: "Build release"
48
48
+
- name: "Build release (all features)"
31
49
command: |
32
50
cargo build --release --all-features
33
51
echo "Build successful"