mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
ci: upgrade Rust from 1.84.1 to 1.86.0 (#6784)
This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -20,20 +20,22 @@ permissions: {}
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -Dwarnings
|
RUSTFLAGS: -Dwarnings
|
||||||
|
RUST_VERSION: 1.86.0
|
||||||
|
|
||||||
|
# Minimum Supported Rust Version
|
||||||
|
MSRV: 1.81.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint_rust:
|
lint_rust:
|
||||||
name: Lint Rust
|
name: Lint Rust
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
RUSTUP_TOOLCHAIN: 1.84.1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install rustfmt and clippy
|
- name: Install rustfmt and clippy
|
||||||
run: rustup toolchain install $RUSTUP_TOOLCHAIN --profile minimal --component rustfmt --component clippy
|
run: rustup toolchain install $RUST_VERSION --profile minimal --component rustfmt --component clippy
|
||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
- name: Run rustfmt
|
- name: Run rustfmt
|
||||||
@@ -91,25 +93,36 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
rust: 1.84.1
|
rust: latest
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
rust: 1.84.1
|
rust: latest
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
rust: 1.84.1
|
rust: latest
|
||||||
|
|
||||||
# Minimum Supported Rust Version = 1.81.0
|
# Minimum Supported Rust Version
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
rust: 1.81.0
|
rust: minimum
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- run:
|
||||||
|
echo "RUSTUP_TOOLCHAIN=$MSRV" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
if: matrix.rust == 'minimum'
|
||||||
|
- run:
|
||||||
|
echo "RUSTUP_TOOLCHAIN=$RUST_VERSION" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
if: matrix.rust == 'latest'
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
show-progress: false
|
show-progress: false
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Install Rust ${{ matrix.rust }}
|
- name: Install Rust ${{ matrix.rust }}
|
||||||
run: rustup toolchain install --profile minimal ${{ matrix.rust }}
|
run: rustup toolchain install --profile minimal $RUSTUP_TOOLCHAIN
|
||||||
- run: rustup override set ${{ matrix.rust }}
|
shell: bash
|
||||||
|
- run: rustup override set $RUSTUP_TOOLCHAIN
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Cache rust cargo artifacts
|
- name: Cache rust cargo artifacts
|
||||||
uses: swatinem/rust-cache@v2
|
uses: swatinem/rust-cache@v2
|
||||||
|
|||||||
@@ -536,7 +536,7 @@ pub unsafe extern "C" fn dc_event_get_id(event: *mut dc_event_t) -> libc::c_int
|
|||||||
EventType::IncomingReaction { .. } => 2002,
|
EventType::IncomingReaction { .. } => 2002,
|
||||||
EventType::IncomingWebxdcNotify { .. } => 2003,
|
EventType::IncomingWebxdcNotify { .. } => 2003,
|
||||||
EventType::IncomingMsg { .. } => 2005,
|
EventType::IncomingMsg { .. } => 2005,
|
||||||
EventType::IncomingMsgBunch { .. } => 2006,
|
EventType::IncomingMsgBunch => 2006,
|
||||||
EventType::MsgsNoticed { .. } => 2008,
|
EventType::MsgsNoticed { .. } => 2008,
|
||||||
EventType::MsgDelivered { .. } => 2010,
|
EventType::MsgDelivered { .. } => 2010,
|
||||||
EventType::MsgFailed { .. } => 2012,
|
EventType::MsgFailed { .. } => 2012,
|
||||||
@@ -594,7 +594,7 @@ pub unsafe extern "C" fn dc_event_get_data1_int(event: *mut dc_event_t) -> libc:
|
|||||||
| EventType::ConnectivityChanged
|
| EventType::ConnectivityChanged
|
||||||
| EventType::SelfavatarChanged
|
| EventType::SelfavatarChanged
|
||||||
| EventType::ConfigSynced { .. }
|
| EventType::ConfigSynced { .. }
|
||||||
| EventType::IncomingMsgBunch { .. }
|
| EventType::IncomingMsgBunch
|
||||||
| EventType::ErrorSelfNotInGroup(_)
|
| EventType::ErrorSelfNotInGroup(_)
|
||||||
| EventType::AccountsBackgroundFetchDone
|
| EventType::AccountsBackgroundFetchDone
|
||||||
| EventType::ChatlistChanged
|
| EventType::ChatlistChanged
|
||||||
@@ -669,7 +669,7 @@ pub unsafe extern "C" fn dc_event_get_data2_int(event: *mut dc_event_t) -> libc:
|
|||||||
| EventType::MsgsNoticed(_)
|
| EventType::MsgsNoticed(_)
|
||||||
| EventType::ConnectivityChanged
|
| EventType::ConnectivityChanged
|
||||||
| EventType::WebxdcInstanceDeleted { .. }
|
| EventType::WebxdcInstanceDeleted { .. }
|
||||||
| EventType::IncomingMsgBunch { .. }
|
| EventType::IncomingMsgBunch
|
||||||
| EventType::SelfavatarChanged
|
| EventType::SelfavatarChanged
|
||||||
| EventType::AccountsBackgroundFetchDone
|
| EventType::AccountsBackgroundFetchDone
|
||||||
| EventType::ChatlistChanged
|
| EventType::ChatlistChanged
|
||||||
@@ -771,7 +771,7 @@ pub unsafe extern "C" fn dc_event_get_data2_str(event: *mut dc_event_t) -> *mut
|
|||||||
| EventType::AccountsBackgroundFetchDone
|
| EventType::AccountsBackgroundFetchDone
|
||||||
| EventType::ChatEphemeralTimerModified { .. }
|
| EventType::ChatEphemeralTimerModified { .. }
|
||||||
| EventType::ChatDeleted { .. }
|
| EventType::ChatDeleted { .. }
|
||||||
| EventType::IncomingMsgBunch { .. }
|
| EventType::IncomingMsgBunch
|
||||||
| EventType::ChatlistItemChanged { .. }
|
| EventType::ChatlistItemChanged { .. }
|
||||||
| EventType::ChatlistChanged
|
| EventType::ChatlistChanged
|
||||||
| EventType::AccountsChanged
|
| EventType::AccountsChanged
|
||||||
|
|||||||
@@ -327,8 +327,12 @@ impl CommandApi {
|
|||||||
.get_config_bool(deltachat::config::Config::ProxyEnabled)
|
.get_config_bool(deltachat::config::Config::ProxyEnabled)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
let provider_info =
|
let provider_info = get_provider_info(
|
||||||
get_provider_info(&ctx, email.split('@').last().unwrap_or(""), proxy_enabled).await;
|
&ctx,
|
||||||
|
email.split('@').next_back().unwrap_or(""),
|
||||||
|
proxy_enabled,
|
||||||
|
)
|
||||||
|
.await;
|
||||||
Ok(ProviderInfo::from_dc_type(provider_info))
|
Ok(ProviderInfo::from_dc_type(provider_info))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -euo pipefail
|
|||||||
#
|
#
|
||||||
# Avoid using rustup here as it depends on reading /proc/self/exe and
|
# Avoid using rustup here as it depends on reading /proc/self/exe and
|
||||||
# has problems running under QEMU.
|
# has problems running under QEMU.
|
||||||
RUST_VERSION=1.84.1
|
RUST_VERSION=1.86.0
|
||||||
|
|
||||||
ARCH="$(uname -m)"
|
ARCH="$(uname -m)"
|
||||||
test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu
|
test -f "/lib/libc.musl-$ARCH.so.1" && LIBC=musl || LIBC=gnu
|
||||||
|
|||||||
Reference in New Issue
Block a user