70
70
# Set fetch-depth: 0 so that Launchable can receive commits information.
71
71
fetch-depth : 10
72
72
73
+ - name : make sure that kern.coredump=1
74
+ run : |
75
+ sysctl -n kern.coredump
76
+ sudo sysctl -w kern.coredump=1
77
+ sudo chmod -R +rwx /cores/
78
+
73
79
- name : Run configure
74
- run : ../src/configure -C --disable-install-doc
80
+ run : ../src/configure -C --disable-install-doc ${ruby_configure_args}
75
81
76
82
- run : make prepare-gems
77
83
if : ${{ matrix.test_task == 'test-bundled-gems' }}
@@ -110,6 +116,7 @@ jobs:
110
116
111
117
- name : make skipped tests
112
118
run : |
119
+ ulimit -c unlimited
113
120
make -s test-all TESTS="${TESTS//-n!\//-n/}"
114
121
env :
115
122
GNUMAKEFLAGS : ' '
@@ -124,6 +131,36 @@ jobs:
124
131
SLACK_WEBHOOK_URL : ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
125
132
if : ${{ failure() }}
126
133
134
+ - name : Resolve job ID
135
+ id : job_id
136
+ uses : actions/github-script@main
137
+ env :
138
+ matrix : ${{ toJson(matrix) }}
139
+ with :
140
+ script : |
141
+ const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
142
+ owner: context.repo.owner,
143
+ repo: context.repo.repo,
144
+ run_id: context.runId
145
+ });
146
+ const matrix = JSON.parse(process.env.matrix);
147
+ const job_name = `${context.job}${matrix ? ` (${Object.values(matrix).join(", ")})` : ""}`;
148
+ return workflow_run.jobs.find((job) => job.name === job_name).id;
149
+
150
+ - name : upload /cores
151
+ run : |
152
+ ls -l /cores
153
+ CORES_TAR_GZ="cores-${{ github.run_id }}-${{ steps.job_id.outputs.result }}.tar.gz"
154
+ echo "test: $CORES_TAR_GZ"
155
+ if [ -n "$(ls /cores)" ]; then
156
+ tar czf /cores "$CORES_TAR_GZ"
157
+ aws s3 cp "$CORES_TAR_GZ" "s3://ruby-core-files/$CORES_TAR_GZ"
158
+ fi
159
+ env :
160
+ AWS_ACCESS_KEY_ID : ${{ secrets.RUBY_CORE_FILES_AWS_ACCESS_KEY_ID }}
161
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.RUBY_CORE_FILES_AWS_SECRET_ACCESS_KEY }}
162
+ AWS_DEFAULT_REGION : ap-northeast-1
163
+
127
164
result :
128
165
if : ${{ always() }}
129
166
name : ${{ github.workflow }} result
0 commit comments