From 905fb539850c4155b604c7772d3054f3ae7e85b3 Mon Sep 17 00:00:00 2001 From: James Martin Date: Wed, 15 Jul 2020 14:30:08 -0700 Subject: [PATCH] Add GitHub CI build workflow. --- .editorconfig | 3 +++ .github/workflows/rust.yml | 23 +++++++++++++++++++++++ src/main.rs | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/rust.yml diff --git a/.editorconfig b/.editorconfig index 2225fd9..e2139a6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,3 +6,6 @@ indent_style = space indent_size = 4 trim_trailing_whitespace = true insert_final_newline = true + +[*.yml] +indent_size = 2 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..2f03c79 --- /dev/null +++ b/.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 diff --git a/src/main.rs b/src/main.rs index 1d990de..088b25c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ fn setup(st: &SystemTable, _handle: Handle) { println!("Booting..."); } -fn main(st: SystemTable, mmap: uefi::table::boot::MemoryMapIter) -> ! { +fn main(_st: SystemTable, _mmap: uefi::table::boot::MemoryMapIter) -> ! { halt(); }