File tree 2 files changed +48
-2
lines changed
2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -320,3 +320,40 @@ jobs:
320
320
shell : bash
321
321
run : |
322
322
test/run-tests.sh
323
+
324
+ cygwin :
325
+ strategy :
326
+ matrix :
327
+ bits : [32, 64]
328
+ include :
329
+ - bits : 32
330
+ arch : x86
331
+ - bits : 64
332
+ arch : x86_64
333
+ fail-fast : false
334
+ runs-on : windows-2019
335
+ timeout-minutes : 30
336
+ steps :
337
+ - name : Checkout repo
338
+ uses : actions/checkout@v4
339
+ - name : Setup Cygwin
340
+ uses : cygwin/cygwin-install-action@v4
341
+ with :
342
+ platform : ${{ matrix.arch }}
343
+ packages : >-
344
+ bison
345
+ gcc-g++
346
+ libpng-devel
347
+ make
348
+ pkg-config
349
+ - name : Build & install using Make
350
+ shell : C:\cygwin\bin\bash.exe '{0}'
351
+ run : | # Cygwin does not support `make develop` sanitizers ASan or UBSan
352
+ PATH="/usr/bin:$(cygpath "${SYSTEMROOT}")/System32"
353
+ make -kj Q=
354
+ make install -j Q=
355
+ - name : Run tests
356
+ shell : C:\cygwin\bin\bash.exe '{0}'
357
+ run : |
358
+ PATH="/usr/bin:$(cygpath "${SYSTEMROOT}")/System32"
359
+ test/run-tests.sh --only-internal
Original file line number Diff line number Diff line change @@ -6,13 +6,15 @@ cd "$(dirname "$0")"
6
6
usage () {
7
7
echo " Runs regression tests on RGBDS."
8
8
echo " Options:"
9
- echo " -h, --help show this help message"
10
- echo " --only-free skip tests that build nonfree codebases"
9
+ echo " -h, --help show this help message"
10
+ echo " --only-free skip tests that build nonfree codebases"
11
+ echo " --only-internal skip tests that build external codebases"
11
12
}
12
13
13
14
# Parse options in pure Bash because macOS `getopt` is stuck
14
15
# in what util-linux `getopt` calls `GETOPT_COMPATIBLE` mode
15
16
nonfree=true
17
+ external=true
16
18
FETCH_TEST_DEPS=" fetch-test-deps.sh"
17
19
while [[ $# -gt 0 ]]; do
18
20
case " $1 " in
@@ -24,6 +26,9 @@ while [[ $# -gt 0 ]]; do
24
26
nonfree=false
25
27
FETCH_TEST_DEPS=" fetch-test-deps.sh --only-free"
26
28
;;
29
+ --only-internal)
30
+ external=false
31
+ ;;
27
32
--)
28
33
break
29
34
;;
@@ -49,6 +54,10 @@ for dir in asm link fix gfx; do
49
54
popd
50
55
done
51
56
57
+ if ! " $external " ; then
58
+ exit
59
+ fi
60
+
52
61
# Test some significant external projects that use RGBDS
53
62
# When adding new ones, don't forget to add them to the .gitignore!
54
63
# When updating subprojects, change the commit being checked out, and set the `shallow-since`
You can’t perform that action at this time.
0 commit comments