Skip to content

Commit c017d59

Browse files
LingManlambda-fairy
authored andcommitted
Downgrade to XCode 13 if Rust <= 1.53 on macOS
On current macOS CI images XCode 14 is enabled by default. There's some incompatibility with Rust <= 1.53 causing link failures. The workaround is to revert back to XCode 13 while our MSRV is lower than 1.54. Fixes #52.
1 parent 559edfb commit c017d59

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,19 @@ jobs:
1717
matrix:
1818
os: [ubuntu-latest, macos-latest, windows-latest]
1919
rust: [stable, nightly, '1.48']
20-
exclude:
21-
# TODO(#52): Investigate why this is broken
22-
- os: macos-latest
23-
rust: '1.48'
2420
steps:
2521
- name: Checkout repository
2622
uses: actions/checkout@v2
2723
- name: Install toolchain
2824
uses: dtolnay/rust-toolchain@master
2925
with:
3026
toolchain: ${{ matrix.rust }}
27+
# Workaround link failures if XCode 14 is combined with Rust <= 1.53
28+
- name: Downgrade to XCode 13
29+
if: ${{ matrix.os == 'macos-latest' && matrix.rust == '1.48' }}
30+
uses: maxim-lobanov/setup-xcode@v1
31+
with:
32+
xcode-version: '13'
3133
- name: Test (no features)
3234
run: cargo test --no-default-features
3335
- name: Test (all features)

0 commit comments

Comments
 (0)