Skip to content

Commit e72e9d3

Browse files
committed
Skip broken builds on Ubuntu 22.04 with GNU libc
1 parent 2a54155 commit e72e9d3

2 files changed

Lines changed: 20 additions & 4 deletions

File tree

.github/workflows/latest-dependencies.yaml

Lines changed: 10 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,15 +124,19 @@ 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
129134
--doc
130135
131136
- name: Build package with all features enabled
137+
# Disable build for GNU targets on Ubuntu 22.04 (unsupported `atomic_uintptr_t`).
138+
# TODO: Try to re-enable this step regardless of the build target in the future.
139+
if: ${{ matrix.runner_os != 'ubuntu-22.04' || endsWith(matrix.target, '-musl') }}
132140
# We allow dirty state here because it is only expected after update.
133141
run: >-
134142
cargo package

.github/workflows/test.yaml

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

Comments
 (0)