|
6 | 6 |
|
7 | 7 | jobs: |
8 | 8 | build: |
9 | | - strategy: |
10 | | - matrix: |
11 | | - os: [windows-latest, macos-latest] |
12 | | - runs-on: ${{ matrix.os }} |
13 | | - steps: |
14 | | - - name: Check out Git repository |
15 | | - uses: actions/checkout@v1 |
16 | | - |
17 | | - - name: Install Node.js, NPM and Yarn |
18 | | - uses: actions/setup-node@v1 |
19 | | - with: |
20 | | - node-version: 14 |
21 | | - |
22 | | - - name: Install deps |
23 | | - run: | |
24 | | - npm run install-deps |
25 | | - npm run nightlyversion |
26 | | -
|
27 | | - - name: build windows app |
28 | | - if: matrix.os == 'windows-latest' |
29 | | - run: | |
30 | | - npm run dist:win |
31 | | - env: |
32 | | - GH_TOKEN: ${{ secrets.github_token }} |
33 | | - |
34 | | - - name: build mac app |
35 | | - if: matrix.os == 'macos-latest' |
36 | | - run: | |
37 | | - npm run dist:mac |
38 | | - env: |
39 | | - GH_TOKEN: ${{ secrets.github_token }} |
40 | | - |
41 | | - - name: upload windows app |
42 | | - if: matrix.os == 'windows-latest' |
43 | | - uses: actions/upload-artifact@v2 |
44 | | - with: |
45 | | - name: iProxyNightly-${{ runner.OS }} |
46 | | - path: release/*.exe |
47 | | - |
48 | | - - name: upload mac app |
49 | | - if: matrix.os == 'macos-latest' |
50 | | - uses: actions/upload-artifact@v2 |
51 | | - with: |
52 | | - name: iProxyNightly-${{ runner.OS }} |
53 | | - path: release/*.dmg |
| 9 | + strategy: |
| 10 | + matrix: |
| 11 | + os: [windows-latest, macos-latest, macos-10.15] |
| 12 | + runs-on: ${{ matrix.os }} |
| 13 | + steps: |
| 14 | + - name: Check out Git repository |
| 15 | + uses: actions/checkout@v1 |
| 16 | + |
| 17 | + - name: Install Node.js, NPM and Yarn |
| 18 | + uses: actions/setup-node@v1 |
| 19 | + with: |
| 20 | + node-version: 14 |
| 21 | + |
| 22 | + - name: Install deps |
| 23 | + if: matrix.os != 'macos-10.15' |
| 24 | + run: | |
| 25 | + npm run install-deps |
| 26 | + npm run nightlyversion |
| 27 | +
|
| 28 | + - name: Install deps for M1 |
| 29 | + if: matrix.os == 'macos-10.15' |
| 30 | + run: | |
| 31 | + env IS_ARM=1 npm run install-deps |
| 32 | + npm run nightlyversion |
| 33 | +
|
| 34 | + - name: build windows app |
| 35 | + if: matrix.os == 'windows-latest' |
| 36 | + run: | |
| 37 | + npm run dist:win |
| 38 | + env: |
| 39 | + GH_TOKEN: ${{ secrets.github_token }} |
| 40 | + |
| 41 | + - name: build mac app |
| 42 | + if: matrix.os == 'macos-latest' |
| 43 | + run: | |
| 44 | + npm run dist:mac |
| 45 | + env: |
| 46 | + GH_TOKEN: ${{ secrets.github_token }} |
| 47 | + |
| 48 | + - name: build mac app for M1 |
| 49 | + if: matrix.os == 'macos-10.15' |
| 50 | + run: | |
| 51 | + npm run dist:mac-arm |
| 52 | + env: |
| 53 | + GH_TOKEN: ${{ secrets.github_token }} |
| 54 | + |
| 55 | + - name: upload windows app |
| 56 | + if: matrix.os == 'windows-latest' |
| 57 | + uses: actions/upload-artifact@v2 |
| 58 | + with: |
| 59 | + name: iProxyNightly-${{ runner.OS }} |
| 60 | + path: release/*.exe |
| 61 | + |
| 62 | + - name: upload mac app |
| 63 | + if: matrix.os == 'macos-latest' |
| 64 | + uses: actions/upload-artifact@v2 |
| 65 | + with: |
| 66 | + name: iProxyNightly-Intel-${{ runner.OS }} |
| 67 | + path: release/*.dmg |
| 68 | + |
| 69 | + - name: upload mac app for M1 |
| 70 | + if: matrix.os == 'macos-10.15' |
| 71 | + uses: actions/upload-artifact@v2 |
| 72 | + with: |
| 73 | + name: iProxyNightly-Apple-${{ runner.OS }} |
| 74 | + path: release/*.dmg |
0 commit comments