File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 75
75
run : |
76
76
echo 'AWS_LC_SYS_EXTERNAL_BINDGEN=0' >> "$GITHUB_ENV"
77
77
- if : ${{ matrix.target[0] == 'x86_64-unknown-illumos' }}
78
- # TODO: Restructure the build options
79
78
run : |
80
79
echo 'CROSS_TEST_EXTRA_FLAG=--no-run' >> "$GITHUB_ENV"
80
+ - if : ${{ matrix.target[0] != 'x86_64-unknown-illumos' }}
81
+ # Since Rust 1.89, doctests run by default.
82
+ # When cross-compiling, doctests do not have the environment setup properly to link to shared libraries.
83
+ # Per documentation:
84
+ # --all-targets Test all targets (does not include doctests)
85
+ run : |
86
+ echo 'CROSS_TEST_EXTRA_FLAG=--all-targets' >> "$GITHUB_ENV"
81
87
- name : Cross-compilation (test release)
82
88
run : cross test -p aws-lc-rs --release "${CROSS_TEST_EXTRA_FLAG}" --features unstable --target ${{ matrix.target[0] }}
83
89
- if : ${{ matrix.target[1] == 1 }}
You can’t perform that action at this time.
0 commit comments