Skip to content

Commit

Permalink
build: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
LastLeaf committed Dec 2, 2024
1 parent 6e89c21 commit 7c3709c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 205 deletions.
8 changes: 2 additions & 6 deletions float-pigment-css/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ name = "float_pigment_css_update_version"
path = "compile_cache/bin/main.rs"
required-features = ["compile_cache"]

[[bin]]
name = "publish"
path = "compile_cache/bin/publish.rs"
required-features = ["compile_cache"]

[[bin]]
[[test]]
name = "bincode_test"
path = "tests/compatibility/main.rs"
required-features = ["compatibility_test"]
test = false

[[bench]]
name = "parse"
Expand Down
9 changes: 2 additions & 7 deletions float-pigment-css/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,5 @@ struct Hello {
}
```

To update the `compile_cache`, this steps should be followed:

* Make sure the HEAD have the published commit merged.
* Update the cargo version of float-pigment-css.
* Run `cargo run --bin float_pigment_css_update_version`.
* The `compile_cache/publish/version.toml` should be updated.
* Run `cargo run --bin publish` (it will git-tag and git-push).
To update the `compile_cache`, run `cargo run --bin float_pigment_css_update_version`.
(This will be automatically done by the publish script.)
191 changes: 0 additions & 191 deletions float-pigment-css/compile_cache/bin/publish.rs

This file was deleted.

2 changes: 1 addition & 1 deletion publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if test -z '$(git status --porcelain)'; then
echo 'Git status OK.'

# update compile cache for float-pigment-css
if cargo run --bin float_pigment_css_update_version --features compile_cache; then
if cargo run --bin float_pigment_css_update_version; then
echo 'Compile cache for float-pigment-css updated.'
else
echo 'Failed to update compile cache for float-pigment-css! Abort'
Expand Down

0 comments on commit 7c3709c

Please sign in to comment.