@@ -116,14 +116,18 @@ jobs:
116116 shared-key : ${{ github.workflow }}-${{ github.job }}-${{ matrix.target }}-${{ matrix.runner_os }}
117117
118118 - name : Build with feature combinations
119+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
120+ # TODO: Try to re-enable this step regardless of the build target in the future.
121+ if : ${{ matrix.runner_os != 'ubuntu-22.04' || endsWith(matrix.target, '-musl') }}
119122 run : >-
120123 cargo hack --each-feature
121124 build --locked
122125
123126 - name : Run tests (bins/lib/tests/examples) with feature combinations
127+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
124128 # Disable tests for musl libc target(s) due to build failure for unknown reasons.
125129 # TODO: Try to re-enable this step regardless of the build target in the future.
126- if : ${{ !endsWith(matrix.target, '-musl') }}
130+ if : ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
127131 run : >-
128132 cargo hack --each-feature
129133 test --locked
@@ -136,15 +140,19 @@ jobs:
136140 # certain features only for some doctests, so we run them without
137141 # `cargo-hack`.
138142 - name : Run doctests with all features enabled
143+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
139144 # Disable tests for musl libc target(s) due to build failure for unknown reasons.
140145 # TODO: Try to re-enable this step regardless of the build target in the future.
141- if : ${{ !endsWith(matrix.target, '-musl') }}
146+ if : ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
142147 run : >-
143148 cargo test
144149 --locked --all-features
145150 --doc
146151
147152 - name : Build package with all features enabled
153+ # Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
154+ # TODO: Try to re-enable this step regardless of the build target in the future.
155+ if : ${{ matrix.runner_os != 'ubuntu-22.04' || endsWith(matrix.target, '-musl') }}
148156 run : >-
149157 cargo package
150158 --locked --all-features
0 commit comments