Actually Fix CI
This commit is contained in:
parent
3abbb0cb16
commit
c3c7d22006
@ -142,7 +142,7 @@ static void set_env_if_unset(const char *env_name, std::function<std::string()>
|
|||||||
#define LIST_DIALOG_SIZE "400"
|
#define LIST_DIALOG_SIZE "400"
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
// Don't Run As Root
|
// Don't Run As Root
|
||||||
if (getuid() == 0 || geteuid() == 0) {
|
if (getenv("_MCPI_SKIP_ROOT_CHECK") == NULL && (getuid() == 0 || geteuid() == 0)) {
|
||||||
ERR("Don't Run As Root");
|
ERR("Don't Run As Root");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,9 +23,12 @@ cd ../../
|
|||||||
./scripts/setup.sh client "${ARCH}" -DMCPI_HEADLESS_MODE=ON
|
./scripts/setup.sh client "${ARCH}" -DMCPI_HEADLESS_MODE=ON
|
||||||
./scripts/build.sh client "${ARCH}"
|
./scripts/build.sh client "${ARCH}"
|
||||||
|
|
||||||
# Add minecraft-pi-reborn-server To PATH
|
# Add minecraft-pi-reborn-client To PATH
|
||||||
export PATH="$(pwd)/out/client-$(dpkg-architecture -qDEB_BUILD_ARCH)/usr/bin:${PATH}"
|
export PATH="$(pwd)/out/client-$(dpkg-architecture -qDEB_BUILD_ARCH)/usr/bin:${PATH}"
|
||||||
|
|
||||||
|
# Skip Root Check
|
||||||
|
export _MCPI_SKIP_ROOT_CHECK=1
|
||||||
|
|
||||||
# Run Benchmark
|
# Run Benchmark
|
||||||
export HOME="$(pwd)/build/test"
|
export HOME="$(pwd)/build/test"
|
||||||
minecraft-pi-reborn-client --default --benchmark
|
minecraft-pi-reborn-client --default --benchmark
|
||||||
|
Loading…
Reference in New Issue
Block a user