浏览代码

Merge pull request #2287 from zerotier:actions

Fix macOS GitHub Action
Grant Limberg 1 年之前
父节点
当前提交
ddb2759a52
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      .github/workflows/build.yml

+ 8 - 1
.github/workflows/build.yml

@@ -43,13 +43,20 @@ jobs:
       #        git config --global core.eol lf
     - name: checkout
       uses: actions/checkout@v3
-    - name: Install Rust
+    - name: Install Rust aarch64
       uses: actions-rs/toolchain@v1
       with:
         toolchain: stable
         target: aarch64-apple-darwin
         override: true
         components: rustfmt, clippy
+    - name: Install Rust x86_64
+      uses: actions-rs/toolchain@v1
+      with:
+        toolchain: stable
+        target: x86_64-apple-darwin
+        override: true
+        components: rustfmt, clippy
     - name: Set up cargo cache
       uses: Swatinem/rust-cache@v2
       continue-on-error: false