Browse Source

Add GitHub CI build workflow.

master
James Martin 2 years ago
parent
commit
905fb53985
Signed by: james
GPG Key ID: 4B7F3DA9351E577C
  1. 3
      .editorconfig
  2. 23
      .github/workflows/rust.yml
  3. 2
      src/main.rs

3
.editorconfig

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

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

2
src/main.rs

@ -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();
}

Loading…
Cancel
Save