Skip to content

Commit

Permalink
feat: install Ninja build system
Browse files Browse the repository at this point in the history
- Ninja v1.12.1 (default)

Signed-off-by: Stephan Linz <linz@li-pro.net>
  • Loading branch information
rexut committed Oct 21, 2024
1 parent 84cda73 commit 2a59220
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/stages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"include": [
{ "stage": "base" },
{ "stage": "cmake" },
{ "stage": "ninja" },
{ "stage": "push", "ghr-free-disk": false }
]
}
40 changes: 40 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,43 @@ LABEL cmake.version=$TSN_ASDF_CMAKE_VERSION_330
# ############################################################################

FROM cmake-all AS cmake

# ############################################################################
#
# All architectures maintenance for Ninja build system
#
# ############################################################################

FROM cmake AS ninja-all

#
# Ninja runtime versions
# https://github.com/asdf-community/asdf-ninja
# https://github.com/asdf-community/asdf-ninja/commits
#

# Define Ninja versions to be installed via ASDF
ENV TSN_ASDF_NINJA_VERSION=1.12.1

# ############################################################################

# Install Ninja versions and set default version
RUN asdf install ninja $TSN_ASDF_NINJA_VERSION \
&& asdf global ninja $TSN_ASDF_NINJA_VERSION \
&& asdf reshim ninja \
\
&& asdf local ninja $TSN_ASDF_NINJA_VERSION \
&& asdf list ninja \
\
&& ninja --version

# Adding labels for external usage
LABEL ninja.version=$TSN_ASDF_NINJA_VERSION

# ############################################################################
#
# Final maintenance for Ninja build system
#
# ############################################################################

FROM ninja-all AS ninja

0 comments on commit 2a59220

Please sign in to comment.