Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ansjsun committed Jul 20, 2020
1 parent bb00e04 commit 3d925ba
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3d925ba

Please sign in to comment.