-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Mingw docker images and test them
- Loading branch information
Showing
19 changed files
with
157 additions
and
19 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
File renamed without changes.
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
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
dev/scripts/generate-docker-tests.mjs → ...ocker/__tests__/generate-docker-tests.mjs
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
File renamed without changes.
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,7 @@ | ||
#### Cross Building (example) | ||
FROM setup-cpp-arch-mingw AS builder-mingw | ||
|
||
COPY ./dev/cpp_vcpkg_project /home/app | ||
WORKDIR /home/app | ||
RUN bash -c 'source ~/.cpprc \ | ||
&& task build_cross_mingw' |
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 @@ | ||
#### Cross Building (example) | ||
FROM setup-cpp-fedora-mingw AS builder-mingw | ||
|
||
COPY ./dev/cpp_vcpkg_project /home/app | ||
WORKDIR /home/app | ||
RUN bash -c 'source ~/.cpprc \ | ||
&& task build_cross_mingw' |
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,29 @@ | ||
## base image | ||
FROM archlinux:base as setup-cpp-arch-mingw | ||
|
||
RUN pacman -Syuu --noconfirm && \ | ||
pacman-db-upgrade && \ | ||
# install nodejs | ||
pacman -S --noconfirm --needed nodejs npm && \ | ||
# install setup-cpp | ||
npm install -g [email protected] && \ | ||
# install the compiler and tools | ||
setup-cpp \ | ||
--compiler mingw \ | ||
--cmake true \ | ||
--ninja true \ | ||
--task true \ | ||
--vcpkg true \ | ||
--python true \ | ||
--make true \ | ||
--cppcheck true \ | ||
--gcovr true \ | ||
--doxygen true \ | ||
--ccache true \ | ||
--powershell true && \ | ||
# arch cleanup | ||
pacman -Scc --noconfirm && \ | ||
rm -rf /var/cache/pacman/pkg/* && \ | ||
rm -rf /tmp/* | ||
|
||
ENTRYPOINT ["/bin/bash"] |
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,26 @@ | ||
## base image | ||
FROM fedora:38 as setup-cpp-fedora-mingw | ||
|
||
# install nodejs | ||
RUN dnf -y install nodejs npm && \ | ||
# install setup-cpp | ||
npm install -g [email protected] && \ | ||
# install the compiler and tools | ||
setup-cpp \ | ||
--compiler mingw \ | ||
--cmake true \ | ||
--ninja true \ | ||
--task true \ | ||
--vcpkg true \ | ||
--python true \ | ||
--make true \ | ||
--cppcheck true \ | ||
--gcovr true \ | ||
--doxygen true \ | ||
--ccache true \ | ||
--powershell true && \ | ||
# cleanup | ||
dnf clean all && \ | ||
rm -rf /tmp/* | ||
|
||
ENTRYPOINT ["/bin/bash"] |
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,32 @@ | ||
#### Base Image | ||
FROM ubuntu:22.04 as setup-cpp-ubuntu-mingw | ||
|
||
RUN apt-get update -qq && \ | ||
# install nodejs | ||
apt-get install -y --no-install-recommends nodejs npm && \ | ||
# install setup-cpp | ||
npm install -g [email protected] && \ | ||
# install the compiler and tools | ||
setup-cpp \ | ||
--nala true \ | ||
--compiler mingw \ | ||
--cmake true \ | ||
--ninja true \ | ||
--task true \ | ||
--vcpkg true \ | ||
--python true \ | ||
--make true \ | ||
--cppcheck true \ | ||
--gcovr true \ | ||
--doxygen true \ | ||
--ccache true \ | ||
--powershell true && \ | ||
# cleanup | ||
nala autoremove -y && \ | ||
nala autopurge -y && \ | ||
apt-get clean && \ | ||
nala clean --lists && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /tmp/* | ||
|
||
ENTRYPOINT ["/bin/bash"] |
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 @@ | ||
#### Cross Building (example) | ||
FROM setup-cpp-ubuntu-mingw AS builder-mingw | ||
|
||
COPY ./dev/cpp_vcpkg_project /home/app | ||
WORKDIR /home/app | ||
RUN bash -c 'source ~/.cpprc \ | ||
&& task build_cross_mingw' |
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