@@ -114,14 +114,18 @@ jobs:
114114 shared-key : ${{ github.workflow }}-${{ github.job }}-${{ matrix.target }}-${{ matrix.runner_os }}
115115
116116 - name : Build with feature combinations
117+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
118+ # TODO: Try to re-enable this step regardless of the build target in the future.
119+ if : ${{ matrix.runner_os != 'ubuntu-22.04' || endsWith(matrix.target, '-musl') }}
117120 run : >-
118121 cargo hack --each-feature
119122 build --locked
120123
121124 - name : Run tests (bins/lib/tests/examples) with feature combinations
125+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
122126 # Disable tests for musl libc target(s) due to build failure for unknown reasons.
123127 # TODO: Try to re-enable this step regardless of the build target in the future.
124- if : ${{ !endsWith(matrix.target, '-musl') }}
128+ if : ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
125129 run : >-
126130 cargo hack --each-feature
127131 test --locked
@@ -134,9 +138,10 @@ jobs:
134138 # certain features only for some doctests, so we run them without
135139 # `cargo-hack`.
136140 - name : Run doctests with all features enabled
141+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
137142 # Disable tests for musl libc target(s) due to build failure for unknown reasons.
138143 # TODO: Try to re-enable this step regardless of the build target in the future.
139- if : ${{ !endsWith(matrix.target, '-musl') }}
144+ if : ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
140145 run : >-
141146 cargo test
142147 --locked --all-features
0 commit comments