|
6 | 6 | - '*' |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - publish: |
10 | | - name: Publish for ${{ matrix.os }} |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - strategy: |
13 | | - matrix: |
14 | | - include: |
15 | | - - os: ubuntu-latest |
16 | | - artifact_name: modeling |
17 | | - asset_name: modeling-linux-amd64 |
18 | | - - os: windows-latest |
19 | | - artifact_name: modeling.exe |
20 | | - asset_name: modeling-windows-amd64 |
21 | | - - os: macos-latest |
22 | | - artifact_name: modeling |
23 | | - asset_name: modeling-macos-amd64 |
| 9 | + build_windows: |
| 10 | + name: Build Windows |
| 11 | + runs-on: windows-latest |
24 | 12 |
|
25 | 13 | steps: |
26 | 14 | - uses: actions/checkout@v2 |
|
37 | 25 | uses: svenstaro/upload-release-action@v1-release |
38 | 26 | with: |
39 | 27 | repo_token: ${{ secrets.GITHUB_TOKEN }} |
40 | | - file: target/release/${{ matrix.artifact_name }} |
41 | | - asset_name: ${{ matrix.asset_name }} |
| 28 | + file: target/release/modeling.exe |
| 29 | + asset_name: modeling-windows.exe |
| 30 | + tag: ${{ github.ref }} |
| 31 | + |
| 32 | + - name: Upload visualing to release |
| 33 | + uses: svenstaro/upload-release-action@v1-release |
| 34 | + with: |
| 35 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + file: target/release/visualing.exe |
| 37 | + asset_name: visualing-windows.exe |
| 38 | + tag: ${{ github.ref }} |
| 39 | + |
| 40 | + build_ubuntu: |
| 41 | + name: Build Ubuntu |
| 42 | + runs-on: ubuntu-latest |
| 43 | + |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v2 |
| 46 | + |
| 47 | + - uses: actions-rs/toolchain@v1 |
| 48 | + with: |
| 49 | + profile: minimal |
| 50 | + toolchain: stable |
| 51 | + |
| 52 | + - name: Build |
| 53 | + run: cargo build --release |
| 54 | + |
| 55 | + - name: Upload modeling to release |
| 56 | + uses: svenstaro/upload-release-action@v1-release |
| 57 | + with: |
| 58 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 59 | + file: target/release/modeling |
| 60 | + asset_name: modeling_linux |
| 61 | + tag: ${{ github.ref }} |
| 62 | + |
| 63 | + - name: Upload visualing to release |
| 64 | + uses: svenstaro/upload-release-action@v1-release |
| 65 | + with: |
| 66 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 67 | + file: target/release/visualing |
| 68 | + asset_name: visualing_linux |
| 69 | + tag: ${{ github.ref }} |
| 70 | + |
| 71 | + build_macos: |
| 72 | + name: Build macOS |
| 73 | + runs-on: macos-latest |
| 74 | + |
| 75 | + steps: |
| 76 | + - uses: actions/checkout@v2 |
| 77 | + |
| 78 | + - uses: actions-rs/toolchain@v1 |
| 79 | + with: |
| 80 | + profile: minimal |
| 81 | + toolchain: stable |
| 82 | + |
| 83 | + - name: Build |
| 84 | + run: cargo build --release |
| 85 | + |
| 86 | + - name: Upload modeling to release |
| 87 | + uses: svenstaro/upload-release-action@v1-release |
| 88 | + with: |
| 89 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 90 | + file: target/release/modeling |
| 91 | + asset_name: modeling_macos |
| 92 | + tag: ${{ github.ref }} |
| 93 | + |
| 94 | + - name: Upload visualing to release |
| 95 | + uses: svenstaro/upload-release-action@v1-release |
| 96 | + with: |
| 97 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 98 | + file: target/release/visualing |
| 99 | + asset_name: visualing_macos |
42 | 100 | tag: ${{ github.ref }} |
0 commit comments