mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 14:40:32 +00:00
Speedup codegen by caching tools/codegen compilation (#554)
This commit is contained in:
@@ -10,11 +10,11 @@ cd "$(dirname "$0")"/..
|
||||
# ./tools/manifest.sh [PACKAGE [VERSION_REQ]]
|
||||
|
||||
if [[ $# -gt 0 ]]; then
|
||||
cargo +nightly run --manifest-path tools/codegen/Cargo.toml --release -- "$@"
|
||||
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "$@"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for manifest in tools/codegen/base/*.json; do
|
||||
package=$(basename "${manifest%.*}")
|
||||
cargo +nightly run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
|
||||
cargo run --manifest-path tools/codegen/Cargo.toml --release -- "${package}" latest
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user