-
-
Notifications
You must be signed in to change notification settings - Fork 18
124 lines (100 loc) · 3.44 KB
/
Cargo.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: "Cargo PMLL Build & Test"
on:
# Run this workflow whenever a push is made to main
push:
branches: [ "main" ]
# Also run for pull requests targeting main
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# 1) Check out your repository code
- name: Check out code
uses: actions/checkout@v4
# 2) (Optional) install a particular Rust toolchain (stable, nightly, etc.)
# The runner may already have stable Rust, so you can skip if you want default stable.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
# Alternatively:
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# 3) Build your Rust project
- name: Cargo Build
run: cargo build --verbose
# If Cargo.toml is in a subdirectory, adjust with --manifest-path subdir/Cargo.toml
# 4) (Optional) Run tests
- name: Cargo Test
run: cargo test --verbose
# 5) (Optional) Lint or format checks
# - name: Cargo Clippy
# run: cargo clippy --all-targets --all-features -- -D warnings
# - name: Cargo Fmt Check
# run: cargo fmt --all -- --check
[package]
name = "pmll_logic_loop_knowledge_block"
version = "0.1.0"
edition = "2021"
# Author info; you can add more names or contact if needed.
authors = ["Josef Kurk Edwards (OpenAI) <josef@example.com>"]
description = "An example Rust project demonstrating cargo build"
license = "MIT"
[dependencies]
# Add your dependencies here, for example:
# serde = "1.0"
# rand = "0.8"
[package]
name = "pmll_logic_loop_knowledge_block"
version = "0.1.1"
edition = "2021"
license = "MIT"
authors = ["Josef Kurk Edwards (OpenAI) <josef@example.com>"]
description = "An upgraded Rust project demonstrating cargo build and common dependencies."
# Optional: if you're publishing to crates.io, you can also include:
# repository = "https://github.com/YOUR_USERNAME/YOUR_REPO"
[dependencies]
# Example commonly used crates:
serde = "1.0"
rand = "0.8"
# If you need additional crates, add them here (e.g. 'reqwest', 'tokio', etc.)
[profile.release]
# Example release build settings, if needed
opt-level = 3
name: "Cargo Build & Test"
on:
# Run this workflow whenever a push is made to main
push:
branches: [ "main" ]
# Also run for pull requests targeting main
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# 1. Check out your repository's code so we have access to Cargo.toml, src/, etc.
- name: Check out code
uses: actions/checkout@v4
# 2. (Optional) Install a particular Rust toolchain, e.g. stable, nightly, or a pinned version.
# If you want the default stable from GitHub's runner, you can skip this step.
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
# Alternatively:
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# 3. Build your project in debug mode
- name: Cargo Build
run: cargo build --verbose
# 4. (Optional) Run tests
- name: Cargo Test
run: cargo test --verbose
# 5. (Optional) Run clippy or other checks
# - name: Cargo Clippy
# run: cargo clippy --all-targets --all-features -- -D warnings