Skip to content

Commit c028d28

Browse files
thrimborRyzee119
authored andcommitted
docker: Don't include samples in Docker image
1 parent 89577be commit c028d28

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ tools/cg/mac
33
tools/cg/win
44
lib/sdl/SDL2/test
55
lib/libcxx/test
6+
samples/

.github/workflows/build_samples.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ jobs:
1515
- name: Build Docker image
1616
run: docker build -t nxdk ./
1717
- name: Test Docker image
18-
run: docker run nxdk sh -ec "cd /usr/src/nxdk && ./.ci_build_samples.sh"
18+
run: |
19+
cd samples
20+
for dir in */
21+
do
22+
cd "$dir"
23+
docker run --rm -v `pwd`:/usr/src/app -t nxdk make -j`nproc`
24+
cd ..
25+
done
1926
windows:
2027
name: Windows
2128
runs-on: windows-latest

0 commit comments

Comments
 (0)