FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
mrubyc/.github/workflows/test.yml at master · mrubyc/mrubyc · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
mrubyc
/
mrubyc
Public
Notifications
You must be signed in to change notification settings
Fork
87
Star
494
Code
Issues
0
Pull requests
1
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
mrubyc
/
.github
/
workflows
/
test.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
147 lines (135 loc) · 5.04 KB
Breadcrumbs
mrubyc
/
.github
/
workflows
/
test.yml
Copy path
File metadata and controls
147 lines (135 loc) · 5.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name
:
mruby/c Tests
on
:
push
:
branches
:
[ main, master ]
pull_request
:
branches
:
[ main, master ]
jobs
:
test
:
runs-on
:
ubuntu-22.04
strategy
:
matrix
:
test_type
:
[host_gcc, host_gcc_no_libc, host_clang, host_clang_no_libc, arm, arm_no_libc, mips, mips_no_libc]
fail-fast
:
false
steps
:
-
uses
:
actions/checkout@v6
-
name
:
Clone PicoRuby
run
:
git clone https://github.com/picoruby/picoruby
-
name
:
Restore Cache
uses
:
actions/cache@v5
with
:
path
:
/tmp/.buildx-cache
key
:
Linux-buildx-${{ github.sha }}
restore-keys
:
|
Linux-buildx-
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v4
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v4
-
name
:
Cache Docker layers
uses
:
actions/cache@v5
with
:
path
:
/tmp/.buildx-cache
key
:
${{ runner.os }}-buildx-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-buildx-
enableCrossOsArchive
:
true
-
name
:
Get runner UID
run
:
echo "RUNNER_UID=$(id -u)" >> $GITHUB_ENV
-
name
:
Build test container
uses
:
docker/build-push-action@v7
with
:
context
:
.
load
:
true
tags
:
mrubyc-test:latest
build-args
:
|
USER_ID=${{ env.RUNNER_UID }}
cache-from
:
type=local,src=/tmp/.buildx-cache
cache-to
:
type=local,dest=/tmp/.buildx-cache-new,mode=max
platforms
:
linux/amd64
-
name
:
Move cache
run
:
|
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
name
:
Run ${{ matrix.test_type }} tests
run
:
|
case ${{ matrix.test_type }} in
"host_gcc")
docker run \
-e CC=gcc \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=femtoruby-test \
-e RUBY="bin/femtoruby" \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"host_gcc_no_libc")
docker run \
-e CC=gcc \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=femtoruby-test \
-e RUBY="bin/femtoruby" \
-e PICORB_NO_LIBC_ALLOC=1 \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"host_clang")
docker run \
-e CC=clang \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=femtoruby-test \
-e RUBY="bin/femtoruby" \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"host_clang_no_libc")
docker run \
-e CC=clang \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=femtoruby-test \
-e RUBY="bin/femtoruby" \
-e PICORB_NO_LIBC_ALLOC=1 \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"arm")
docker run \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=arm-linux-gnueabihf \
-e RUBY="qemu-arm -L /usr/arm-linux-gnueabihf build/arm-linux-gnueabihf/bin/femtoruby" \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"arm_no_libc")
docker run \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=arm-linux-gnueabihf \
-e RUBY="qemu-arm -L /usr/arm-linux-gnueabihf build/arm-linux-gnueabihf/bin/femtoruby" \
-e PICORB_NO_LIBC_ALLOC=1 \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"mips")
docker run \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=mips-linux-gnu \
-e RUBY="qemu-mips -L /usr/mips-linux-gnu build/mips-linux-gnu/bin/femtoruby" \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
"mips_no_libc")
docker run \
-e PICORB_DEBUG=1 \
-e MRUBY_CONFIG=mips-linux-gnu \
-e RUBY="qemu-mips -L /usr/mips-linux-gnu build/mips-linux-gnu/bin/femtoruby" \
-e PICORB_NO_LIBC_ALLOC=1 \
--rm -v ${{ github.workspace }}:/work/mrubyc mrubyc-test \
bash -c "rake clean && rake && ruby /work/mrubyc/test/0_runner.rb"
;;
esac
shell
:
bash
#
- name: Setup tmate session
#
if: ${{ failure() }}
#
uses: mxschmitt/action-tmate@v3
#
with:
#
limit-access-to-actor: true
Back
|
FazBrowse Home
|
New Git URL