|
| 1 | +name: Build ThunderOnWindows |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: ["master"] |
| 6 | + pull_request: |
| 7 | + branches: ["master"] |
| 8 | + |
| 9 | +env: |
| 10 | + devEnv: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\devenv.com |
| 11 | + solution: Thunder.sln |
| 12 | + |
| 13 | +jobs: |
| 14 | + ThunderOnWindows: |
| 15 | + runs-on: windows-latest |
| 16 | + |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + type: [Debug, Release] |
| 20 | + version: [64, 86] |
| 21 | + |
| 22 | + name: Build type - ${{matrix.type}}${{matrix.version}} |
| 23 | + steps: |
| 24 | + - name: Checkout ThunderOnWindows |
| 25 | + uses: actions/checkout@v3 |
| 26 | + with: |
| 27 | + path: ThunderOnWindows |
| 28 | + repository: WebPlatformForEmbedded/ThunderOnWindows |
| 29 | + |
| 30 | + - name: Checkout Thunder |
| 31 | + uses: actions/checkout@v3 |
| 32 | + with: |
| 33 | + path: ThunderOnWindows/Thunder |
| 34 | + repository: rdkcentral/Thunder |
| 35 | + |
| 36 | + - name: Checkout ThunderTools |
| 37 | + uses: actions/checkout@v3 |
| 38 | + with: |
| 39 | + path: ThunderOnWindows/ThunderTools |
| 40 | + repository: rdkcentral/ThunderTools |
| 41 | + |
| 42 | + - name: Checkout ThunderClientLibraries |
| 43 | + uses: actions/checkout@v3 |
| 44 | + with: |
| 45 | + path: ThunderOnWindows/ThunderClientLibraries |
| 46 | + repository: rdkcentral/ThunderClientLibraries |
| 47 | + |
| 48 | + - name: Checkout ThunderInterfaces |
| 49 | + uses: actions/checkout@v3 |
| 50 | + with: |
| 51 | + path: ThunderOnWindows/ThunderInterfaces |
| 52 | + repository: rdkcentral/ThunderInterfaces |
| 53 | + |
| 54 | + - name: Checkout ThunderNanoServices |
| 55 | + uses: actions/checkout@v3 |
| 56 | + with: |
| 57 | + path: ThunderOnWindows/ThunderNanoServices |
| 58 | + repository: rdkcentral/ThunderNanoServices |
| 59 | + |
| 60 | + - name: Checkout ThunderNanoServicesRDK |
| 61 | + uses: actions/checkout@v3 |
| 62 | + with: |
| 63 | + path: ThunderOnWindows/ThunderNanoServicesRDK |
| 64 | + repository: WebPlatformForEmbedded/ThunderNanoServicesRDK |
| 65 | + |
| 66 | + - name: Install jsonref |
| 67 | + run: pip install jsonref |
| 68 | + |
| 69 | + - name: Build ThunderOnWindows |
| 70 | + shell: cmd |
| 71 | + run: | |
| 72 | + cd ThunderOnWindows |
| 73 | + "%devEnv%" /Build "${{matrix.type}}|x${{matrix.version}}" "%solution%" |
| 74 | + |
| 75 | + - name: Tar files |
| 76 | + run: tar -czvf ${{matrix.type}}${{matrix.version}}.tar.gz artifacts |
| 77 | + |
| 78 | + - name: Upload |
| 79 | + uses: actions/upload-artifact@v3 |
| 80 | + with: |
| 81 | + name: Thunder-${{matrix.type}}${{matrix.version}}-artifact |
| 82 | + path: ${{matrix.type}}${{matrix.version}}.tar.gz |
0 commit comments