|
9 | 9 | RELEASE_PAYLOAD_FILE: release/payload.json |
10 | 10 | jobs: |
11 | 11 | release: |
12 | | - runs-on: ${{ matrix.os }} |
13 | | - strategy: |
14 | | - matrix: |
15 | | - os: [ubuntu-18.04] |
| 12 | + runs-on: ubuntu-18.04 |
16 | 13 | steps: |
17 | 14 | - uses: AutoModality/action-clean@v1.1.0 |
18 | 15 | - name: Checkout |
|
49 | 46 | path: '${{ env.RELEASE_DIR }}' |
50 | 47 | release-package: |
51 | 48 | needs: release |
52 | | - runs-on: [x64, self-hosted,linux,build] |
| 49 | + runs-on: ${{ matrix.os }} |
| 50 | + strategy: |
| 51 | + matrix: |
| 52 | + os: [[x64, self-hosted,linux,build], [arm64,self-hosted,linux, build]] |
| 53 | + fail-fast: true |
53 | 54 | name: Package if released |
54 | 55 | steps: |
55 | 56 | - uses: AutoModality/action-clean@v1.1.0 |
|
77 | 78 | if: steps.published.outputs.value == 'true' |
78 | 79 | id: deploy |
79 | 80 | run: amros dev docker run -dm --command="deploy-amros ${{ secrets.DEVELOPER_PASSWORD }} ${{ steps.version.outputs.value }} release ${{ secrets.CLOUDSMITH_API_KEY }}" |
80 | | - release-package-arm: |
81 | | - needs: release |
82 | | - runs-on: [arm64,self-hosted,linux, cuda] |
83 | | - steps: |
84 | | - - uses: AutoModality/action-clean@v1.1.0 |
85 | | - - uses: actions/checkout@v2 |
86 | | - - name: Download release |
87 | | - uses: actions/download-artifact@v1 |
88 | | - with: |
89 | | - name: release |
90 | | - path: ${{ env.RELEASE_DIR }} |
91 | | - - name: Read Published |
92 | | - id: published |
93 | | - uses: christian-draeger/read-properties@1.0.1 |
94 | | - with: |
95 | | - path: ${{ env.RELEASE_PROPERTIES_FILE }} |
96 | | - property: 'published' |
97 | | - - name: Read Version if published |
98 | | - id: version |
99 | | - if: steps.published.outputs.value == 'true' |
100 | | - uses: christian-draeger/read-properties@1.0.1 |
101 | | - with: |
102 | | - path: ${{ env.RELEASE_PROPERTIES_FILE }} |
103 | | - property: 'version' |
104 | | - - name: Deploy |
105 | | - id: deploy |
106 | | - if: steps.published.outputs.value == 'true' |
107 | | - run: deploy-amros ${{ secrets.DEVELOPER_PASSWORD }} ${{ steps.version.outputs.value }} release ${{ secrets.CLOUDSMITH_API_KEY }} |
108 | 81 | notify-amros: |
109 | | - needs: |
110 | | - - release-package |
111 | | - - release-package-arm |
| 82 | + needs: release-package |
112 | 83 | runs-on: ubuntu-latest |
113 | 84 | name: Notify AMROS |
114 | 85 | steps: |
|
0 commit comments