Skip to content

Commit 7c3709c

Browse files
committed
build: update publish script
1 parent 6e89c21 commit 7c3709c

File tree

4 files changed

+5
-205
lines changed

4 files changed

+5
-205
lines changed

float-pigment-css/Cargo.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ name = "float_pigment_css_update_version"
2424
path = "compile_cache/bin/main.rs"
2525
required-features = ["compile_cache"]
2626

27-
[[bin]]
28-
name = "publish"
29-
path = "compile_cache/bin/publish.rs"
30-
required-features = ["compile_cache"]
31-
32-
[[bin]]
27+
[[test]]
3328
name = "bincode_test"
3429
path = "tests/compatibility/main.rs"
3530
required-features = ["compatibility_test"]
31+
test = false
3632

3733
[[bench]]
3834
name = "parse"

float-pigment-css/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,5 @@ struct Hello {
6363
}
6464
```
6565

66-
To update the `compile_cache`, this steps should be followed:
67-
68-
* Make sure the HEAD have the published commit merged.
69-
* Update the cargo version of float-pigment-css.
70-
* Run `cargo run --bin float_pigment_css_update_version`.
71-
* The `compile_cache/publish/version.toml` should be updated.
72-
* Run `cargo run --bin publish` (it will git-tag and git-push).
66+
To update the `compile_cache`, run `cargo run --bin float_pigment_css_update_version`.
67+
(This will be automatically done by the publish script.)

float-pigment-css/compile_cache/bin/publish.rs

Lines changed: 0 additions & 191 deletions
This file was deleted.

publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if test -z '$(git status --porcelain)'; then
5757
echo 'Git status OK.'
5858

5959
# update compile cache for float-pigment-css
60-
if cargo run --bin float_pigment_css_update_version --features compile_cache; then
60+
if cargo run --bin float_pigment_css_update_version; then
6161
echo 'Compile cache for float-pigment-css updated.'
6262
else
6363
echo 'Failed to update compile cache for float-pigment-css! Abort'

0 commit comments

Comments
 (0)