Add GitHub CI build workflow.

master
James T. Martin 2020-07-15 14:30:08 -07:00
parent b0501daeb9
commit 905fb53985
Signed by: james
GPG Key ID: 4B7F3DA9351E577C
3 changed files with 27 additions and 1 deletions

View File

@ -6,3 +6,6 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
[*.yml]
indent_size = 2

23
.github/workflows/rust.yml vendored Normal file
View File

@ -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

View File

@ -20,7 +20,7 @@ fn setup(st: &SystemTable<Boot>, _handle: Handle) {
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();
}