-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use updated windows-gnu and cross - Bump MSRV to v1.63 Signed-off-by: John Nunley <[email protected]>
- Loading branch information
Showing
3 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,11 @@ jobs: | |
target: | ||
- x86_64-pc-windows-gnu | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe. | ||
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} | ||
- run: rustup target add ${{ matrix.target }} | ||
# https://github.com/rust-lang/rust/issues/49078 | ||
- name: Fix windows-gnu rust-mingw | ||
run : | | ||
for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do | ||
cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/x86_64-pc-windows-gnu/lib" | ||
done | ||
shell: bash | ||
- run: cargo build --target ${{ matrix.target }} --all --all-features --all-targets | ||
- run: cargo test --target ${{ matrix.target }} | ||
|
||
|
@@ -61,38 +54,44 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- name: Install cross | ||
uses: taiki-e/install-action@v1 | ||
with: | ||
# https://github.com/cross-rs/cross/issues/724 | ||
tool: [email protected] | ||
uses: taiki-e/install-action@cross | ||
# We don't test BSDs, since we already test them in Cirrus. | ||
- name: Android | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: cross test --target arm-linux-androideabi | ||
- name: NetBSD | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: cross build --target x86_64-unknown-netbsd | ||
- name: FreeBSD | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: cross build --target x86_64-unknown-freebsd | ||
- name: iOS | ||
if: startsWith(matrix.os, 'macos') | ||
run: cross build --target aarch64-apple-ios | ||
# - name: illumos | ||
# if: startsWith(matrix.os, 'ubuntu') | ||
# run: cross build --target x86_64-unknown-illumos | ||
run: | | ||
rustup target add aarch64-apple-ios | ||
cross build --target aarch64-apple-ios | ||
- name: Linux x32 | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-linux-gnux32 | ||
cross check --target x86_64-unknown-linux-gnux32 | ||
- name: Fuchsia | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-fuchsia | ||
cargo build --target x86_64-unknown-fuchsia | ||
- name: illumos | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-illumos | ||
cargo build --target x86_64-unknown-illumos | ||
msrv: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# When updating this, the reminder to update the minimum supported | ||
# Rust version in Cargo.toml and .clippy.toml. | ||
ad_rust: ['1.47'] | ||
dp_rust: ['1.41'] | ||
ad_rust: ['1.63'] | ||
dp_rust: ['1.63'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Rust for async-dns | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters