-
Notifications
You must be signed in to change notification settings - Fork 9
/
config.yml
94 lines (88 loc) · 2.3 KB
/
config.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
version: 2.1
orbs:
slack: circleci/[email protected]
executors:
circleci-rust-docker:
docker:
- image: cimg/rust:1.78
jobs:
release:
executor: circleci-rust-docker
steps:
- add_ssh_keys:
fingerprints:
- "ca:b3:cd:ca:06:0d:42:99:78:27:26:e2:5b:b7:94:a3"
- checkout
- run:
name: Run publish
command: .circleci/ci-publish.sh
- slack/notify:
event: fail
template: basic_fail_1
branch_pattern: main
build:
executor: circleci-rust-docker
steps:
- checkout
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- run:
name: Calculate dependencies
no_output_timeout: 30m
command: cargo generate-lockfile
- restore_cache:
key: cargo-pants-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
- run:
name: Check formatting
command: cargo fmt -- --check
- run:
name: Build all targets
command: cargo build --all --all-targets
- save_cache:
key: cargo-pants-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
paths:
- "~/.cargo"
- "./target"
- run:
name: Run all tests
command: cargo test --all
- run:
name: Dogfood with locally built Cargo Pants
command: ./target/debug/cargo-pants pants --ignore-file .pants-ignore
- run:
name: Install Cargo Pants as Cargo Subcommand
command: cargo install cargo-pants --force
- run:
name: Dogfood Cargo Pants
command: cargo pants
- slack/notify:
event: fail
template: basic_fail_1
branch_pattern: main
workflows:
version: 2
build_and_release:
jobs:
- build:
context: slack_community_oss_fun
- release:
context:
- cargo-pants
- slack_community_oss_fun
filters:
branches:
only:
- main
requires:
- build
build_nightly:
triggers:
- schedule:
cron: "50 20 * * *"
filters:
branches:
only: main
jobs:
- build:
context: slack_community_oss_fun