File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ sudo ()
88
99# Build
1010if [[ " $1 " != " 0" ]]; then
11- .ci/common/build.sh linux || exit 1
11+ .ci/common/build.sh appimage_build linux || exit 1
1212fi
1313
1414repo_dir=$( pwd)
15- mkdir -p appimage_build
1615cd appimage_build
1716
1817# Build linuxdeploy
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- PLATFORM=$1
3+ BUILD_DIR=$1
4+ PLATFORM=$2
45
56# exit codes:
67# 1: unsupported platform
78# 3: configuration failed
89# 4: build failed
910
10- cmake -B $RUNNER_WORKSPACE /build -DCMAKE_BUILD_TYPE=Release -DSCRATCHCPP_PLAYER_BUILD_UNIT_TESTS=OFF || exit 3
11+ mkdir -p " $BUILD_DIR "
12+ cmake -B " $BUILD_DIR " -DCMAKE_BUILD_TYPE=Release -DSCRATCHCPP_PLAYER_BUILD_UNIT_TESTS=OFF || exit 3
1113
1214if [[ " $PLATFORM " == " win32" ]]; then
13- cmake --build $RUNNER_WORKSPACE /build -j4 || exit 4
15+ cmake --build " $BUILD_DIR " -j4 || exit 4
1416elif [[ " $PLATFORM " == " win64" ]]; then
15- cmake --build $RUNNER_WORKSPACE /build -j4 || exit 4
17+ cmake --build " $BUILD_DIR " -j4 || exit 4
1618elif [[ " $PLATFORM " == " macos" ]]; then
17- cmake --build $RUNNER_WORKSPACE /build -j6 || exit 4
19+ cmake --build " $BUILD_DIR " -j6 || exit 4
1820else
19- cmake --build $RUNNER_WORKSPACE /build -j$( nproc --all) || exit 4
21+ cmake --build " $BUILD_DIR " -j$( nproc --all) || exit 4
2022fi
You can’t perform that action at this time.
0 commit comments