Add GitHub CI build workflow.
parent
b0501daeb9
commit
905fb53985
|
@ -6,3 +6,6 @@ indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
name: Rust
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install latest nightly
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
override: true
|
||||||
|
components: rust-src
|
||||||
|
|
||||||
|
- name: Install cargo-xbuild
|
||||||
|
run: cargo install cargo-xbuild
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
run: cargo xbuild --target x86_64-unknown-uefi
|
|
@ -20,7 +20,7 @@ fn setup(st: &SystemTable<Boot>, _handle: Handle) {
|
||||||
println!("Booting...");
|
println!("Booting...");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main(st: SystemTable<uefi::table::Runtime>, mmap: uefi::table::boot::MemoryMapIter) -> ! {
|
fn main(_st: SystemTable<uefi::table::Runtime>, _mmap: uefi::table::boot::MemoryMapIter) -> ! {
|
||||||
halt();
|
halt();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue