From 3d925babf4c103fce15aa89e76b1b0ca4c7ac8ef Mon Sep 17 00:00:00 2001 From: ansj Date: Mon, 20 Jul 2020 18:39:24 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd1c7fe..f75a790 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,9 +15,16 @@ jobs: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] steps: + - name: Checkout code uses: actions/checkout@v2 - - name: Build project # This would actually build your project, using zip for an example artifact + + - name: MacOs before install + if: matrix.os == 'macOS-latest' + run: rustup component add rustfmt --toolchain stable-x86_64-apple-darwin + + + - name: Build project run: | cargo build --release - name: Create Release @@ -31,10 +38,7 @@ jobs: draft: false prerelease: false - - name: Build(Mac) - if: matrix.os == 'macOS-latest' - run: | - rustup component add rustfmt --toolchain stable-x86_64-apple-darwin + - name: Upload Release Asset For Mac if: matrix.os == 'macOS-latest' id: upload-release-asset-mac