File tree Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Expand file tree Collapse file tree 3 files changed +30
-7
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,18 @@ function ASSERT {
16
16
17
17
cleanup
18
18
19
+ # macOS needs more time to boot compared to Linux, so the timeout is set to
20
+ # 600 seconds for macOS to handle the longer startup. For Linux, 90 seconds
21
+ # is sufficient due to its faster boot process.
22
+ UNAME_S=$( uname -s)
23
+ if [[ ${UNAME_S} == " Darwin" ]]; then
24
+ TIMEOUT=600
25
+ else # Linux
26
+ TIMEOUT=90
27
+ fi
28
+
19
29
ASSERT expect << DONE
20
- set timeout 90
30
+ set timeout ${TIMEOUT}
21
31
spawn make check
22
32
expect "buildroot login:" { send "root\n" } timeout { exit 1 }
23
33
expect "# " { send "uname -a\n" } timeout { exit 2 }
Original file line number Diff line number Diff line change @@ -3,14 +3,27 @@ name: CI
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- rv32emu :
6
+ semu-linux :
7
7
runs-on : ubuntu-22.04
8
8
steps :
9
9
- uses : actions/checkout@v4
10
10
- name : install-dependencies
11
- run : |
12
- sudo apt-get install build-essential device-tree-compiler
13
- sudo apt-get install expect
11
+ run : |
12
+ sudo apt-get install build-essential device-tree-compiler expect
13
+ - name : default build
14
+ run : make
15
+ shell : bash
16
+ - name : automated test
17
+ run : .ci/autorun.sh
18
+ shell : bash
19
+
20
+ semu-macOS :
21
+ runs-on : macos-latest
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - name : install-dependencies
25
+ run : |
26
+ brew install make dtc expect e2fsprogs
14
27
- name : default build
15
28
run : make
16
29
shell : bash
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ define download
19
19
$($(T ) _DATA) :
20
20
$(VECHO ) " GET\t$$@ \n"
21
21
$(Q ) curl --progress-bar -O -L -C - "$(strip $($(T ) _DATA_URL) ) "
22
- $(Q ) echo "$(strip $$($(T ) _DATA_SHA1) ) $$@ .bz2" | $(SHA1SUM ) -c
22
+ $(Q ) echo "$(strip $$($(T ) _DATA_SHA1) ) $$@ .bz2" | $(SHA1SUM ) -c
23
23
$(Q ) bunzip2 $$@ .bz2
24
24
endef
25
25
26
26
EXTERNAL_DATA = KERNEL INITRD
27
- $(foreach T,$(EXTERNAL_DATA),$(eval $(download)))
27
+ $(foreach T,$(EXTERNAL_DATA),$(eval $(download)))
You can’t perform that action at this time.
0 commit comments