Skip to content

Commit 9af0551

Browse files
committed
Merge branch 'feature/cross-mingw' of https://github.com/abeimler/setup-cpp into feature/cross-mingw
2 parents f849ee1 + 69ae3d5 commit 9af0551

29 files changed

+159
-63
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ jobs:
143143
- "arch.dockerfile"
144144
- "fedora.dockerfile"
145145
- "ubuntu.dockerfile"
146+
- "arch-mingw.dockerfile"
147+
- "fedora-mingw.dockerfile"
148+
- "ubuntu-mingw.dockerfile"
146149
steps:
147150
- uses: actions/checkout@v3
148151
with:

dev/docker/__tests__/arch.mingw.dockerfile renamed to dev/docker/__tests__/arch-mingw.dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ RUN pacman -Syuu --noconfirm && \
3636
--cppcheck true \
3737
--gcovr true \
3838
--doxygen true \
39-
--ccache true \
40-
--powershell true && \
39+
--ccache true && \
4140
# arch cleanup
4241
pacman -Scc --noconfirm && \
4342
rm -rf /var/cache/pacman/pkg/* && \
@@ -46,10 +45,9 @@ RUN pacman -Syuu --noconfirm && \
4645
ENTRYPOINT ["/bin/bash"]
4746

4847
#### Cross Building (example)
49-
FROM setup-cpp-arch-mingw AS builder
48+
FROM setup-cpp-arch-mingw AS builder-mingw
5049

5150
COPY ./dev/cpp_vcpkg_project /home/app
5251
WORKDIR /home/app
5352
RUN bash -c 'source ~/.cpprc \
5453
&& task build_cross_mingw'
55-

dev/docker/__tests__/fedora.mingw.dockerfile renamed to dev/docker/__tests__/fedora-mingw.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ RUN dnf -y install nodejs npm && \
2626

2727
ENTRYPOINT ["/bin/bash"]
2828

29-
#### Building (example)
30-
FROM setup-cpp-fedora-mingw AS builder
29+
#### Cross Building (example)
30+
FROM setup-cpp-fedora-mingw AS builder-mingw
3131

3232
COPY ./dev/cpp_vcpkg_project /home/app
3333
WORKDIR /home/app

dev/scripts/generate-docker-tests.mjs renamed to dev/docker/__tests__/generate-docker-tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFile, writeFile } from "fs/promises"
22

33
async function main() {
4-
const dockerFiles = ["ubuntu", "arch", "fedora"]
4+
const dockerFiles = ["ubuntu", "arch", "fedora", "ubuntu-mingw", "arch-mingw", "fedora-mingw"]
55
await Promise.all(
66
dockerFiles.map(async (dockerFile) => {
77
const dockerFileContent = await readFile(`./dev/docker/setup-cpp-${dockerFile}.dockerfile`, "utf-8")

dev/docker/__tests__/ubuntu.mingw.dockerfile renamed to dev/docker/__tests__/ubuntu-mingw.dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ RUN apt-get update -qq && \
3333
ENTRYPOINT ["/bin/bash"]
3434

3535
#### Cross Building (example)
36-
FROM setup-cpp-ubuntu-mingw AS builder
36+
FROM setup-cpp-ubuntu-mingw AS builder-mingw
3737

3838
COPY ./dev/cpp_vcpkg_project /home/app
3939
WORKDIR /home/app
4040
RUN bash -c 'source ~/.cpprc \
4141
&& task build_cross_mingw'
42-

dev/docker/arch-mingw.dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#### Cross Building (example)
2+
FROM setup-cpp-arch-mingw AS builder-mingw
3+
4+
COPY ./dev/cpp_vcpkg_project /home/app
5+
WORKDIR /home/app
6+
RUN bash -c 'source ~/.cpprc \
7+
&& task build_cross_mingw'

dev/docker/arch.dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,3 @@ FROM archlinux:base as runner
1414
COPY --from=builder /home/app/build/my_exe/Release/ /home/app/
1515
WORKDIR /home/app/
1616
ENTRYPOINT ["./my_exe"]
17-
18-
#### Cross Building (example)
19-
FROM setup-cpp-arch-mingw AS builder-mingw
20-
21-
COPY ./dev/cpp_vcpkg_project /home/app
22-
WORKDIR /home/app
23-
RUN bash -c 'source ~/.cpprc \
24-
&& task build_cross_mingw'

0 commit comments

Comments
 (0)