26
26
if : ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'check-self-hosted-ci') }}
27
27
outputs :
28
28
ubuntu20_04_aarch64-label : ${{ steps.start-ubuntu20_04_aarch64-runner.outputs.label }}
29
- amazonlinux2_x86_64-label : ${{ steps.start-amazonlinux2_x86_64-runner.outputs.label }}
29
+ # amazonlinux2_x86_64-label: ${{ steps.start-amazonlinux2_x86_64-runner.outputs.label }}
30
30
ubuntu20_04_aarch64-ec2-instance-id : ${{ steps.start-ubuntu20_04_aarch64-runner.outputs.ec2-instance-id }}
31
- amazonlinux2_x86_64-ec2-instance-id : ${{ steps.start-amazonlinux2_x86_64-runner.outputs.ec2-instance-id }}
31
+ # amazonlinux2_x86_64-ec2-instance-id: ${{ steps.start-amazonlinux2_x86_64-runner.outputs.ec2-instance-id }}
32
32
steps :
33
33
- name : Configure AWS credentials
34
34
uses : aws-actions/configure-aws-credentials@v1
@@ -46,16 +46,16 @@ jobs:
46
46
ec2-instance-type : c6g.large
47
47
subnet-id : subnet-327f4a13
48
48
security-group-id : sg-0429f5ec2bee9dc0c
49
- - name : Start EC2 runner (amazonlinux2_x86_64)
50
- id : start-amazonlinux2_x86_64-runner
51
- uses : machulav/ec2-github-runner@v2
52
- with :
53
- mode : start
54
- github-token : ${{ secrets.SWIFTWASM_BUILDBOT_TOKEN }}
55
- ec2-image-id : ami-059fc55111c686d49 # swiftwasm-ci/amzn2-ami-kernel-5.10-hvm-2.0.20211223.0-x86_64-gp2
56
- ec2-instance-type : c6i.large
57
- subnet-id : subnet-327f4a13
58
- security-group-id : sg-0429f5ec2bee9dc0c
49
+ # - name: Start EC2 runner (amazonlinux2_x86_64)
50
+ # id: start-amazonlinux2_x86_64-runner
51
+ # uses: machulav/ec2-github-runner@v2
52
+ # with:
53
+ # mode: start
54
+ # github-token: ${{ secrets.SWIFTWASM_BUILDBOT_TOKEN }}
55
+ # ec2-image-id: ami-059fc55111c686d49 # swiftwasm-ci/amzn2-ami-kernel-5.10-hvm-2.0.20211223.0-x86_64-gp2
56
+ # ec2-instance-type: c6i.large
57
+ # subnet-id: subnet-327f4a13
58
+ # security-group-id: sg-0429f5ec2bee9dc0c
59
59
stop-runner :
60
60
name : Stop self-hosted EC2 runner
61
61
needs : [start-runner, build-toolchain]
@@ -76,13 +76,13 @@ jobs:
76
76
github-token : ${{ secrets.SWIFTWASM_BUILDBOT_TOKEN }}
77
77
label : ${{ needs.start-runner.outputs.ubuntu20_04_aarch64-label }}
78
78
ec2-instance-id : ${{ needs.start-runner.outputs.ubuntu20_04_aarch64-ec2-instance-id }}
79
- - name : Stop EC2 runner (amazonlinux2_x86_64)
80
- uses : machulav/ec2-github-runner@v2
81
- with :
82
- mode : stop
83
- github-token : ${{ secrets.SWIFTWASM_BUILDBOT_TOKEN }}
84
- label : ${{ needs.start-runner.outputs.amazonlinux2_x86_64-label }}
85
- ec2-instance-id : ${{ needs.start-runner.outputs.amazonlinux2_x86_64-ec2-instance-id }}
79
+ # - name: Stop EC2 runner (amazonlinux2_x86_64)
80
+ # uses: machulav/ec2-github-runner@v2
81
+ # with:
82
+ # mode: stop
83
+ # github-token: ${{ secrets.SWIFTWASM_BUILDBOT_TOKEN }}
84
+ # label: ${{ needs.start-runner.outputs.amazonlinux2_x86_64-label }}
85
+ # ec2-instance-id: ${{ needs.start-runner.outputs.amazonlinux2_x86_64-ec2-instance-id }}
86
86
87
87
build-matrix :
88
88
name : Build matrix
@@ -154,21 +154,21 @@ jobs:
154
154
)
155
155
156
156
if [[ ${{ needs.start-runner.result }} == "success" ]]; then
157
- MATRIX_ENTRIES="$MATRIX_ENTRIES,"
158
- MATRIX_ENTRIES="$MATRIX_ENTRIES"$(cat <<EOS
159
- {
160
- "build_os": "amazon-linux-2",
161
- "agent_query": "${{ needs.start-runner.outputs.amazonlinux2_x86_64-label }}",
162
- "target": "amazonlinux2_x86_64",
163
- "run_stdlib_test": false,
164
- "run_full_test": false,
165
- "run_e2e_test": false,
166
- "build_hello_wasm": true,
167
- "clean_build_dir": false
168
- }
169
- EOS
170
- )
171
-
157
+ # MATRIX_ENTRIES="$MATRIX_ENTRIES,"
158
+ # MATRIX_ENTRIES="$MATRIX_ENTRIES"$(cat <<EOS
159
+ # {
160
+ # "build_os": "amazon-linux-2",
161
+ # "agent_query": "${{ needs.start-runner.outputs.amazonlinux2_x86_64-label }}",
162
+ # "target": "amazonlinux2_x86_64",
163
+ # "run_stdlib_test": false,
164
+ # "run_full_test": false,
165
+ # "run_e2e_test": false,
166
+ # "build_hello_wasm": true,
167
+ # "clean_build_dir": false
168
+ # }
169
+ # EOS
170
+ # )
171
+
172
172
MATRIX_ENTRIES="$MATRIX_ENTRIES,"
173
173
MATRIX_ENTRIES="$MATRIX_ENTRIES"$(cat <<EOS
174
174
{
0 commit comments