Change to out-of source build, Update build instructions (#3271)
* update build instructions Usage of "modern" CMake syntax and using specific out of source build. Further add example on how to build in parallel, build a specific target and how to change the compiler. This closes #3236.
This commit is contained in:
@@ -30,13 +30,13 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup.sh && \
|
||||
RUN git clean -dfx && \
|
||||
git submodule init && \
|
||||
git submodule update && \
|
||||
cmake -DCMAKE_BUILD_TYPE=release . && \
|
||||
make -j8
|
||||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release . && \
|
||||
cmake --build build -j 8
|
||||
|
||||
FROM base AS runner
|
||||
|
||||
# Install Taskwarrior
|
||||
COPY --from=builder /root/code/src/task /usr/local/bin
|
||||
COPY --from=builder /root/code/build/src/task /usr/local/bin
|
||||
|
||||
# Initialize Taskwarrior
|
||||
RUN ( echo "yes" | task ) || true
|
||||
|
||||
Reference in New Issue
Block a user