-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from murat-dogan/new-github-actions
New GitHub actions
- Loading branch information
Showing
5 changed files
with
120 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG version=3.16 | ||
ARG node_version=16 | ||
FROM node:${node_version}-alpine${version} | ||
RUN apk add build-base openssl-libs-static openssl-dev | ||
|
||
WORKDIR /usr/app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ARG version=bullseye | ||
ARG node_version=16 | ||
FROM node:${node_version}-${version} | ||
RUN apt update | ||
RUN apt install -y build-essential libssl-dev | ||
|
||
WORKDIR /usr/app/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(triple $ENV{TRIPLE}) | ||
|
||
# use clang and lld | ||
set(CMAKE_C_COMPILER $ENV{GCC}) | ||
set(CMAKE_CXX_COMPILER $ENV{GCC}) | ||
if (CMAKE_C_COMPILER MATCHES clang) | ||
add_link_options("-fuse-ld=lld") | ||
endif() | ||
|
||
set(CMAKE_SYSROOT "$ENV{SYSROOT}") | ||
message(STATUS "Using sysroot: ${CMAKE_SYSROOT}") | ||
|
||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) | ||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) | ||
|
||
set(CMAKE_C_COMPILER_TARGET ${triple}) | ||
set(CMAKE_CXX_COMPILER_TARGET ${triple}) | ||
message(STATUS "Compiling for: ${triple}") | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} $ENV{COMPILER_FLAGS}") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} $ENV{COMPILER_FLAGS}") |