浏览代码

Merge pull request #96 from rust-osdev/fix-ci

fix CI
Philipp Schuster 3 年之前
父节点
当前提交
5830f6bfd8
共有 2 个文件被更改,包括 11 次插入2 次删除
  1. 10 1
      .github/workflows/rust.yml
  2. 1 1
      multiboot2/src/lib.rs

+ 10 - 1
.github/workflows/rust.yml

@@ -13,7 +13,12 @@ jobs:
   build:
 
     runs-on: ubuntu-latest
-
+    strategy:
+        matrix:
+            rust:
+                - stable
+                - nightly
+                - 1.52.1 # MSVR
     steps:
     - uses: actions/checkout@v2
     - name: Build
@@ -26,6 +31,10 @@ jobs:
   style_checks:
 
     runs-on: ubuntu-latest
+    strategy:
+        matrix:
+            rust:
+                - stable
 
     steps:
     - uses: actions/checkout@v2

+ 1 - 1
multiboot2/src/lib.rs

@@ -224,7 +224,7 @@ impl BootInformation {
     /// Search for the VBE framebuffer tag.
     pub fn framebuffer_tag(&self) -> Option<FramebufferTag> {
         self.get_tag(TagType::Framebuffer)
-            .map(|tag| framebuffer::framebuffer_tag(tag))
+            .map(framebuffer::framebuffer_tag)
     }
 
     /// Search for the EFI 32-bit SDT tag.