fix: Use gb Cargo.toml with members stripped instead of minimal fake
All checks were successful
BotServer CI / build (push) Successful in 19m40s
All checks were successful
BotServer CI / build (push) Successful in 19m40s
This commit is contained in:
parent
7f36f47339
commit
90b097ea50
1 changed files with 7 additions and 2 deletions
|
|
@ -36,8 +36,13 @@ jobs:
|
||||||
else
|
else
|
||||||
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver
|
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/BotServer.git botserver
|
||||||
fi
|
fi
|
||||||
# Write minimal Cargo.toml workspace
|
# Get workspace Cargo.toml from gb and strip unused members
|
||||||
printf '[workspace]\nmembers = ["botlib", "botserver"]\nresolver = "2"\n\n[workspace.lints.rust]\nunsafe_code = "forbid"\n\n[workspace.lints.clippy]\nall = "warn"\n\n[profile.release]\nopt-level = "z"\nlto = true\ncodegen-units = 1\nstrip = true\npanic = "abort"\n' > Cargo.toml
|
git clone --depth 1 --branch main https://alm.pragmatismo.com.br/GeneralBots/gb.git /tmp/gb-ws
|
||||||
|
cp /tmp/gb-ws/Cargo.toml Cargo.toml
|
||||||
|
for m in botapp botdevice bottest botui botbook botmodels botplugin bottemplates; do
|
||||||
|
grep -v "\"$m\"" Cargo.toml > /tmp/c.toml && mv /tmp/c.toml Cargo.toml
|
||||||
|
done
|
||||||
|
rm -rf /tmp/gb-ws
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue