|
9 | 9 | RELEASE_PAYLOAD_FILE: release/payload.json |
10 | 10 | jobs: |
11 | 11 | release: |
12 | | - runs-on: ubuntu-18.04 |
| 12 | + runs-on: ${{ matrix.os }} |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + os: [ubuntu-18.04] |
13 | 16 | steps: |
14 | 17 | - uses: AutoModality/action-clean@v1.1.0 |
15 | 18 | - name: Checkout |
|
46 | 49 | path: '${{ env.RELEASE_DIR }}' |
47 | 50 | release-package: |
48 | 51 | needs: release |
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 |
| 52 | + runs-on: [x64, self-hosted,linux,build] |
54 | 53 | name: Package if released |
55 | 54 | steps: |
56 | 55 | - uses: AutoModality/action-clean@v1.1.0 |
|
77 | 76 | - name: Deploy if published |
78 | 77 | if: steps.published.outputs.value == 'true' |
79 | 78 | id: deploy |
80 | | - run: amros dev docker run -dm --command="deploy-amros developer ${{ steps.version.outputs.value }} release ${{ secrets.CLOUDSMITH_API_KEY }}" |
| 79 | + 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 }} |
81 | 108 | notify-amros: |
82 | | - needs: release-package |
| 109 | + needs: |
| 110 | + - release-package |
| 111 | + - release-package-arm |
83 | 112 | runs-on: ubuntu-latest |
84 | 113 | name: Notify AMROS |
85 | 114 | steps: |
|
0 commit comments