Skip to content

Commit 76599aa

Browse files
committed
Update CI and switch to stable Rust
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent bc86a4f commit 76599aa

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ on: [push, pull_request]
44
jobs:
55
checks:
66
name: Checks
7-
runs-on: macos-10.15
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [macos-14, macos-15]
811
steps:
912
- uses: actions/checkout@v2
1013
- run: cargo check --examples --tests --all-targets

hv-sys/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
#![allow(improper_ctypes)]
44
// Comes from unit tests, don't care much
55
#![allow(deref_nullptr)]
6-
#![allow(unaligned_references)]
76

87
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

hv/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ pub type GPAddr = u64;
2626

2727
bitflags::bitflags! {
2828
/// Guest physical memory region permissions.
29-
pub struct Memory: u32 {
30-
const READ = sys::HV_MEMORY_READ;
31-
const WRITE = sys::HV_MEMORY_WRITE;
32-
const EXEC = sys::HV_MEMORY_EXEC;
29+
pub struct Memory: u64 {
30+
const READ = 1 << 0;
31+
const WRITE = 1 << 1;
32+
const EXEC = 1 << 2;
3333
}
3434
}
3535

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.53"
2+
channel = "stable"
33
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)