Skip to content

Commit 96c32f1

Browse files
committed
CAP: basic ci for c++ build
1 parent 3ec42dd commit 96c32f1

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "windows-build"
1+
name: "win-build"
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# diffCheck
22
<p align="left">
3-
<img src="https://github.com/diffCheckOrg/diffCheck/actions/workflows/windows-build.yml/badge.svg">
3+
<img src="https://github.com/diffCheckOrg/diffCheck/actions/workflows/win-build.yml/badge.svg">
44
</p>
55

66
Temporary repository for diffCheck
Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
FROM mcr.microsoft.com/windows/servercore:ltsc2019
22

3-
# Install g++ and make
4-
RUN powershell.exe -Command \
5-
choco install mingw -y ; \
6-
choco install make -y
3+
# install cmake
4+
RUN powershell -Command \
5+
$ErrorActionPreference = 'Stop'; \
6+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
7+
Invoke-WebRequest $('
8+
9+
# COnfig the environment
10+
RUN setx /M PATH "%PATH%;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin"
11+
12+
# Set the working directory
13+
WORKDIR /app
14+
15+
# Copy the current directory contents into the container at /app
16+
COPY . /app
17+
18+
# Run g++ to compile the code
19+
CMD [ "g++", "main.cpp", "-o", "main.exe" ]
20+
```

0 commit comments

Comments
 (0)