refactor(ci): enhance embedded build detection and toolchain setup