|
5 | 5 | pull_request: |
6 | 6 |
|
7 | 7 | jobs: |
8 | | - build-linux: |
| 8 | + build: |
9 | 9 | runs-on: ubuntu-18.04 |
10 | | - container: ${{ matrix.config.container }} |
11 | 10 | strategy: |
12 | 11 | matrix: |
13 | | - config: |
14 | | - - {container: "geodesolutions/ubuntu", system: ubuntu} |
15 | | - - {container: "geodesolutions/centos", system: rhel} |
| 12 | + system: [ubuntu, darwin, win64] |
| 13 | + python: [3.6, 3.7, 3.8] |
| 14 | + exclude: |
| 15 | + - system: win64 |
| 16 | + python: 3.8 |
| 17 | + include: |
| 18 | + - system: rhel |
| 19 | + python: 2.7 |
16 | 20 |
|
17 | 21 | steps: |
18 | 22 | - uses: actions/checkout@v1 |
19 | 23 | - name: Cache node modules |
20 | 24 | |
21 | 25 | with: |
22 | 26 | path: node_modules |
23 | | - key: node-${{ matrix.config.system }}-${{ hashFiles('package-lock.json') }} |
| 27 | + key: node-${{ matrix.system }}-${{ hashFiles('package-lock.json') }} |
24 | 28 | - name: Compile |
25 | 29 | run: | |
26 | 30 | npm install |
27 | | - npm run build -- version ${{ matrix.config.system }} |
28 | | - - name: Notify slack |
29 | | - if: failure() && github.ref == 'refs/heads/master' |
30 | | - uses: 8398a7/action-slack@v2 |
31 | | - with: |
32 | | - status: failure |
| 31 | + npm run build -- version ${{ matrix.python }}-${{ matrix.system }} |
33 | 32 | env: |
34 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
35 | | - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
36 | | - |
37 | | - build-mac: |
38 | | - runs-on: macos-latest |
39 | | - |
40 | | - steps: |
41 | | - - uses: actions/checkout@v1 |
42 | | - - name: Cache node modules |
43 | | - |
44 | | - with: |
45 | | - path: node_modules |
46 | | - key: node-darwin-${{ hashFiles('package-lock.json') }} |
47 | | - - name: Compile |
48 | | - run: | |
49 | | - npm install |
50 | | - npm run build -- version darwin |
| 33 | + TOKEN: ${{ secrets.TOKEN }} |
51 | 34 | - name: Notify slack |
52 | 35 | if: failure() && github.ref == 'refs/heads/master' |
53 | 36 | uses: 8398a7/action-slack@v2 |
54 | 37 | with: |
55 | 38 | status: failure |
56 | 39 | env: |
57 | 40 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
58 | | - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
59 | | - |
60 | | - build-windows: |
61 | | - runs-on: windows-2016 |
| 41 | + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
62 | 42 |
|
63 | | - steps: |
64 | | - - uses: actions/checkout@v1 |
65 | | - - name: Cache node modules |
66 | | - |
67 | | - with: |
68 | | - path: node_modules |
69 | | - key: node-win64-${{ hashFiles('package-lock.json') }} |
70 | | - - name: Compile |
71 | | - run: | |
72 | | - npm install |
73 | | - npm run build -- version win64 |
74 | | - - name: Notify slack |
75 | | - if: failure() && github.ref == 'refs/heads/master' |
76 | | - uses: 8398a7/action-slack@v2 |
77 | | - with: |
78 | | - status: failure |
79 | | - env: |
80 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
81 | | - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
82 | | - |
83 | 43 | semantic-release: |
84 | 44 | runs-on: ubuntu-18.04 |
85 | | - needs: [build-linux, build-mac, build-windows] |
| 45 | + needs: build |
86 | 46 | steps: |
87 | 47 | - uses: actions/checkout@v1 |
88 | 48 | - run: npx semantic-release |
|
0 commit comments