Build for older windows version in CI
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-2019]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@@ -187,21 +187,19 @@ impl Mqtt {
|
|||||||
),
|
),
|
||||||
id: client.machine_id.to_owned(),
|
id: client.machine_id.to_owned(),
|
||||||
};
|
};
|
||||||
let data = serde_json::to_vec(&data).unwrap();
|
let data = serde_json::to_vec(&data)?;
|
||||||
|
|
||||||
let server = self.server.upgrade().unwrap();
|
let server = self.server.upgrade().unwrap();
|
||||||
server
|
server.send_packet(
|
||||||
.send_packet(
|
client_id,
|
||||||
client_id,
|
PublishPacket {
|
||||||
PublishPacket {
|
flags: PublishFlags::QOS1,
|
||||||
flags: PublishFlags::QOS1,
|
topic: format!("/sdcp/request/{}", client.attributes.mainboard_id),
|
||||||
topic: format!("/sdcp/request/{}", client.attributes.mainboard_id),
|
packet_id: Some(packet_id),
|
||||||
packet_id: Some(packet_id),
|
data,
|
||||||
data,
|
}
|
||||||
}
|
.to_packet(),
|
||||||
.to_packet(),
|
)?;
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user