@@ -56,86 +56,86 @@ jobs:
56
56
toolchain : stable
57
57
target : thumbv7m-none-eabi
58
58
override : true
59
-
59
+
60
60
- name : Run integration test
61
61
uses : actions-rs/cargo@v1
62
62
with :
63
63
command : run
64
64
args : --features=log --example echo
65
65
66
- device_advisor :
67
- name : AWS IoT Device Advisor
68
- runs-on : ubuntu-latest
69
- needs : test
70
- env :
71
- AWS_EC2_METADATA_DISABLED : true
72
- AWS_DEFAULT_REGION : ${{ secrets.MGMT_AWS_DEFAULT_REGION }}
73
- AWS_ACCESS_KEY_ID : ${{ secrets.MGMT_AWS_ACCESS_KEY_ID }}
74
- AWS_SECRET_ACCESS_KEY : ${{ secrets.MGMT_AWS_SECRET_ACCESS_KEY }}
75
- SUITE_ID : greb3uy2wtq3
76
- THING_ARN : arn:aws:iot:eu-west-1:274906834921:thing/mqttrust
77
- CERTIFICATE_ARN : arn:aws:iot:eu-west-1:274906834921:cert/e7280d8d316b58da3058037a2c1730d9eb15de50e96f4d47e54ea655266b76db
78
- steps :
79
- - name : Checkout
80
- uses : actions/checkout@v1
66
+ # device_advisor:
67
+ # name: AWS IoT Device Advisor
68
+ # runs-on: ubuntu-latest
69
+ # needs: test
70
+ # env:
71
+ # AWS_EC2_METADATA_DISABLED: true
72
+ # AWS_DEFAULT_REGION: ${{ secrets.MGMT_AWS_DEFAULT_REGION }}
73
+ # AWS_ACCESS_KEY_ID: ${{ secrets.MGMT_AWS_ACCESS_KEY_ID }}
74
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.MGMT_AWS_SECRET_ACCESS_KEY }}
75
+ # SUITE_ID: greb3uy2wtq3
76
+ # THING_ARN: arn:aws:iot:eu-west-1:274906834921:thing/mqttrust
77
+ # CERTIFICATE_ARN: arn:aws:iot:eu-west-1:274906834921:cert/e7280d8d316b58da3058037a2c1730d9eb15de50e96f4d47e54ea655266b76db
78
+ # steps:
79
+ # - name: Checkout
80
+ # uses: actions/checkout@v1
81
81
82
- - name : Install Rust
83
- uses : actions-rs/toolchain@v1
84
- with :
85
- profile : minimal
86
- toolchain : stable
87
- override : true
82
+ # - name: Install Rust
83
+ # uses: actions-rs/toolchain@v1
84
+ # with:
85
+ # profile: minimal
86
+ # toolchain: stable
87
+ # override: true
88
88
89
- - name : Get AWS_HOSTNAME
90
- id : hostname
91
- run : |
92
- hostname=$(aws iotdeviceadvisor get-endpoint --output text --query endpoint)
93
- ret=$?
94
- echo "::set-output name=AWS_HOSTNAME::$hostname"
95
- exit $ret
89
+ # - name: Get AWS_HOSTNAME
90
+ # id: hostname
91
+ # run: |
92
+ # hostname=$(aws iotdeviceadvisor get-endpoint --output text --query endpoint)
93
+ # ret=$?
94
+ # echo "::set-output name=AWS_HOSTNAME::$hostname"
95
+ # exit $ret
96
96
97
- - name : Build test binary
98
- uses : actions-rs/cargo@v1
99
- env :
100
- AWS_HOSTNAME : ${{ steps.hostname.outputs.AWS_HOSTNAME }}
101
- with :
102
- command : build
103
- args : --features=log --example aws_device_advisor --release
104
-
105
- - name : Start test suite
106
- id : test_suite
107
- run : |
108
- suite_id=$(aws iotdeviceadvisor start-suite-run --suite-definition-id ${{ env.SUITE_ID }} --suite-run-configuration "primaryDevice={thingArn=${{ env.THING_ARN }},certificateArn=${{ env.CERTIFICATE_ARN }}}" --output text --query suiteRunId)
109
- ret=$?
110
- echo "::set-output name=SUITE_RUN_ID::$suite_id"
111
- exit $ret
112
-
113
- - name : Execute test binary
114
- id : binary
115
- env :
116
- DEVICE_ADVISOR_PASSWORD : ${{ secrets.DEVICE_ADVISOR_PASSWORD }}
117
- RUST_LOG : trace
118
- run : |
119
- nohup ./target/release/examples/aws_device_advisor > device_advisor_integration.log &
120
- echo "::set-output name=PID::$!"
121
-
122
- - name : Monitor test run
123
- run : |
124
- chmod +x ./.github/scripts/da_monitor.sh
125
- echo ${{ env.SUITE_ID }} ${{ steps.test_suite.outputs.SUITE_RUN_ID }} ${{ steps.binary.outputs.PID }}
126
- ./.github/scripts/da_monitor.sh ${{ env.SUITE_ID }} ${{ steps.test_suite.outputs.SUITE_RUN_ID }} ${{ steps.binary.outputs.PID }}
127
-
128
- - name : Kill test binary process
129
- if : ${{ always() }}
130
- run : kill ${{ steps.binary.outputs.PID }} || true
131
-
132
- - name : Log binary output
133
- if : ${{ always() }}
134
- run : cat device_advisor_integration.log
135
-
136
- - name : Stop test suite
137
- if : ${{ failure() }}
138
- run : aws iotdeviceadvisor stop-suite-run --suite-definition-id ${{ env.SUITE_ID }} --suite-run-id ${{ steps.test_suite.outputs.SUITE_RUN_ID }}
97
+ # - name: Build test binary
98
+ # uses: actions-rs/cargo@v1
99
+ # env:
100
+ # AWS_HOSTNAME: ${{ steps.hostname.outputs.AWS_HOSTNAME }}
101
+ # with:
102
+ # command: build
103
+ # args: --features=log --example aws_device_advisor --release
104
+
105
+ # - name: Start test suite
106
+ # id: test_suite
107
+ # run: |
108
+ # suite_id=$(aws iotdeviceadvisor start-suite-run --suite-definition-id ${{ env.SUITE_ID }} --suite-run-configuration "primaryDevice={thingArn=${{ env.THING_ARN }},certificateArn=${{ env.CERTIFICATE_ARN }}}" --output text --query suiteRunId)
109
+ # ret=$?
110
+ # echo "::set-output name=SUITE_RUN_ID::$suite_id"
111
+ # exit $ret
112
+
113
+ # - name: Execute test binary
114
+ # id: binary
115
+ # env:
116
+ # DEVICE_ADVISOR_PASSWORD: ${{ secrets.DEVICE_ADVISOR_PASSWORD }}
117
+ # RUST_LOG: trace
118
+ # run: |
119
+ # nohup ./target/release/examples/aws_device_advisor > device_advisor_integration.log &
120
+ # echo "::set-output name=PID::$!"
121
+
122
+ # - name: Monitor test run
123
+ # run: |
124
+ # chmod +x ./.github/scripts/da_monitor.sh
125
+ # echo ${{ env.SUITE_ID }} ${{ steps.test_suite.outputs.SUITE_RUN_ID }} ${{ steps.binary.outputs.PID }}
126
+ # ./.github/scripts/da_monitor.sh ${{ env.SUITE_ID }} ${{ steps.test_suite.outputs.SUITE_RUN_ID }} ${{ steps.binary.outputs.PID }}
127
+
128
+ # - name: Kill test binary process
129
+ # if: ${{ always() }}
130
+ # run: kill ${{ steps.binary.outputs.PID }} || true
131
+
132
+ # - name: Log binary output
133
+ # if: ${{ always() }}
134
+ # run: cat device_advisor_integration.log
135
+
136
+ # - name: Stop test suite
137
+ # if: ${{ failure() }}
138
+ # run: aws iotdeviceadvisor stop-suite-run --suite-definition-id ${{ env.SUITE_ID }} --suite-run-id ${{ steps.test_suite.outputs.SUITE_RUN_ID }}
139
139
140
140
rustfmt :
141
141
name : rustfmt
@@ -207,75 +207,75 @@ jobs:
207
207
with :
208
208
token : ${{ secrets.GITHUB_TOKEN }}
209
209
args : --features "log" -- ${{ env.CLIPPY_PARAMS }}
210
- grcov :
211
- name : Coverage
212
- runs-on : ubuntu-latest
213
- steps :
214
- - name : Checkout source code
215
- uses : actions/checkout@v2
210
+ # grcov:
211
+ # name: Coverage
212
+ # runs-on: ubuntu-latest
213
+ # steps:
214
+ # - name: Checkout source code
215
+ # uses: actions/checkout@v2
216
216
217
- - name : Install Rust
218
- uses : actions-rs/toolchain@v1
219
- with :
220
- profile : minimal
221
- toolchain : nightly
222
- target : thumbv7m-none-eabi
223
- override : true
217
+ # - name: Install Rust
218
+ # uses: actions-rs/toolchain@v1
219
+ # with:
220
+ # profile: minimal
221
+ # toolchain: nightly
222
+ # target: thumbv7m-none-eabi
223
+ # override: true
224
224
225
- - name : Install grcov
226
- uses : actions-rs/cargo@v1
227
- # uses: actions-rs/install@v0.1
228
- with :
229
- # crate: grcov
230
- # version: latest
231
- # use-tool-cache: true
232
- command : install
233
- args : grcov --git https://github.com/mozilla/grcov
225
+ # - name: Install grcov
226
+ # uses: actions-rs/cargo@v1
227
+ # # uses: actions-rs/install@v0.1
228
+ # with:
229
+ # # crate: grcov
230
+ # # version: latest
231
+ # # use-tool-cache: true
232
+ # command: install
233
+ # args: grcov --git https://github.com/mozilla/grcov
234
234
235
- - name : Test
236
- uses : actions-rs/cargo@v1
237
- with :
238
- command : test
239
- args : --lib --no-fail-fast --features "log"
240
- env :
241
- CARGO_INCREMENTAL : " 0"
242
- RUSTFLAGS : " -Zprofile -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Cpanic=unwind -Zpanic_abort_tests"
243
- RUSTDOCFLAGS : " -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Coverflow-checks=off -Cpanic=unwind -Zpanic_abort_tests"
244
-
245
- - name : Generate coverage data
246
- id : grcov
247
- # uses: actions-rs/grcov@v0.1
248
- run : |
249
- grcov target/debug/ \
250
- --branch \
251
- --llvm \
252
- --source-dir . \
253
- --output-file lcov.info \
254
- --ignore='/**' \
255
- --ignore='C:/**' \
256
- --ignore='../**' \
257
- --ignore-not-existing \
258
- --excl-line "#\\[derive\\(" \
259
- --excl-br-line "(#\\[derive\\()|(debug_assert)" \
260
- --excl-start "#\\[cfg\\(test\\)\\]" \
261
- --excl-br-start "#\\[cfg\\(test\\)\\]" \
262
- --commit-sha ${{ github.sha }} \
263
- --service-job-id ${{ github.job }} \
264
- --service-name "GitHub Actions" \
265
- --service-number ${{ github.run_id }}
266
- - name : Upload coverage as artifact
267
- uses : actions/upload-artifact@v2
268
- with :
269
- name : lcov.info
270
- # path: ${{ steps.grcov.outputs.report }}
271
- path : lcov.info
235
+ # - name: Test
236
+ # uses: actions-rs/cargo@v1
237
+ # with:
238
+ # command: test
239
+ # args: --lib --no-fail-fast --features "log"
240
+ # env:
241
+ # CARGO_INCREMENTAL: "0"
242
+ # RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off -Cpanic=unwind -Zpanic_abort_tests"
243
+ # RUSTDOCFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Coverflow-checks=off -Cpanic=unwind -Zpanic_abort_tests"
244
+
245
+ # - name: Generate coverage data
246
+ # id: grcov
247
+ # # uses: actions-rs/grcov@v0.1
248
+ # run: |
249
+ # grcov target/debug/ \
250
+ # --branch \
251
+ # --llvm \
252
+ # --source-dir . \
253
+ # --output-file lcov.info \
254
+ # --ignore='/**' \
255
+ # --ignore='C:/**' \
256
+ # --ignore='../**' \
257
+ # --ignore-not-existing \
258
+ # --excl-line "#\\[derive\\(" \
259
+ # --excl-br-line "(#\\[derive\\()|(debug_assert)" \
260
+ # --excl-start "#\\[cfg\\(test\\)\\]" \
261
+ # --excl-br-start "#\\[cfg\\(test\\)\\]" \
262
+ # --commit-sha ${{ github.sha }} \
263
+ # --service-job-id ${{ github.job }} \
264
+ # --service-name "GitHub Actions" \
265
+ # --service-number ${{ github.run_id }}
266
+ # - name: Upload coverage as artifact
267
+ # uses: actions/upload-artifact@v2
268
+ # with:
269
+ # name: lcov.info
270
+ # # path: ${{ steps.grcov.outputs.report }}
271
+ # path: lcov.info
272
272
273
- - name : Upload coverage to codecov.io
274
- uses : codecov/codecov-action@v1
275
- with :
276
- # file: ${{ steps.grcov.outputs.report }}
277
- file : lcov.info
278
- fail_ci_if_error : true
273
+ # - name: Upload coverage to codecov.io
274
+ # uses: codecov/codecov-action@v1
275
+ # with:
276
+ # # file: ${{ steps.grcov.outputs.report }}
277
+ # file: lcov.info
278
+ # fail_ci_if_error: true
279
279
docs :
280
280
name : Documentation
281
281
runs-on : ubuntu-latest
0 commit comments