Skip to content

Commit 8034876

Browse files
committed
Skip broken builds on Ubuntu 22.04 with GNU libc
1 parent 5e1d073 commit 8034876

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/latest-dependencies.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,18 @@ jobs:
100100
cargo update --verbose
101101
102102
- name: Build with feature combinations
103+
# Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
104+
# TODO: Try to re-enable this step regardless of the build target in the future.
105+
if: ${{ matrix.runner_os != 'ubuntu-22.04' || endsWith(matrix.target, '-musl') }}
103106
run: >-
104107
cargo hack --each-feature
105108
build --locked
106109
107110
- name: Run tests (bins/lib/tests/examples) with feature combinations
111+
# Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
108112
# Disable tests for musl libc target(s) due to build failure for unknown reasons.
109113
# TODO: Try to re-enable this step regardless of the build target in the future.
110-
if: ${{ !endsWith(matrix.target, '-musl') }}
114+
if: ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
111115
run: >-
112116
cargo hack --each-feature
113117
test --locked
@@ -120,9 +124,10 @@ jobs:
120124
# certain features only for some doctests, so we run them without
121125
# `cargo-hack`.
122126
- name: Run doctests with all features enabled
127+
# Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
123128
# Disable tests for musl libc target(s) due to build failure for unknown reasons.
124129
# TODO: Try to re-enable this step regardless of the build target in the future.
125-
if: ${{ !endsWith(matrix.target, '-musl') }}
130+
if: ${{ matrix.runner_os != 'ubuntu-22.04' && !endsWith(matrix.target, '-musl') }}
126131
run: >-
127132
cargo test
128133
--locked --all-features

.github/workflows/test.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)