Skip to content

Commit a0c67a8

Browse files
authored
Update main.yml
1 parent 845197d commit a0c67a8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,24 @@ jobs:
5252
key: docker-image-${{ runner.os }}-${{ github.sha }}
5353
restore-keys: |
5454
docker-image-${{ runner.os }}-
55+
56+
- name: Run Nano Container
57+
shell: pwsh
58+
run: |
59+
$workspace = "${{ github.workspace }}"
60+
docker run -dit --name orphan -v "$workspace:C:\app" app:latest
61+
62+
- name: Nano Container - Configure CMake Project
63+
shell: pwsh
64+
run: |
65+
docker exec -it orphan cd "C:\app\tests" && cmake --preset configure-msvc-winsdk
66+
67+
- name: Nano Container - Build the Project
68+
shell: pwsh
69+
run: |
70+
docker exec -it orphan cd "C:\app\tests" && cmake --build --preset build-msvc-winsdk --config Release
71+
72+
- name: Nano Container - Test the Project
73+
shell: pwsh
74+
run: |
75+
docker exec -it orphan cd "C:\app\tests\build\src" && ctest -C Release --stop-on-failure --verbose

0 commit comments

Comments
 (0)