|
| 1 | +name: build-with-plugins |
| 2 | +description: Build desktop binaries |
| 3 | +inputs: |
| 4 | + platform: |
| 5 | + description: General target platform name (windows) |
| 6 | + required: true |
| 7 | + platform-short: |
| 8 | + description: General target platform short name (win) |
| 9 | + required: true |
| 10 | + runtime: |
| 11 | + description: Target platform runtime (win-x64) |
| 12 | + required: true |
| 13 | +runs: |
| 14 | + using: composite |
| 15 | + steps: |
| 16 | + - name: Build Core app package |
| 17 | + shell: bash |
| 18 | + run: | |
| 19 | + dotnet publish \ |
| 20 | + Core/Microsoft.DataTransfer.Core/Microsoft.DataTransfer.Core.csproj \ |
| 21 | + --configuration release \ |
| 22 | + --output ${{ inputs.platform-short }} \ |
| 23 | + --self-contained true \ |
| 24 | + --runtime ${{ inputs.runtime }} \ |
| 25 | + -p:PublishSingleFile=true \ |
| 26 | + -p:DebugType=embedded \ |
| 27 | + -p:EnableCompressionInSingleFile=true \ |
| 28 | + -p:PublishReadyToRun=false \ |
| 29 | + -p:PublishTrimmed=false \ |
| 30 | + -p:Version=0.0.${{ github.run_number }} |
| 31 | + - name: Build Cosmos Extension |
| 32 | + shell: bash |
| 33 | + run: | |
| 34 | + dotnet publish \ |
| 35 | + Extensions/Cosmos/Microsoft.DataTransfer.CosmosExtension/Microsoft.DataTransfer.CosmosExtension.csproj \ |
| 36 | + --configuration release \ |
| 37 | + --output ${{ inputs.platform-short }}/Extensions \ |
| 38 | + --self-contained false \ |
| 39 | + --runtime ${{ inputs.runtime }} \ |
| 40 | + -p:PublishSingleFile=false \ |
| 41 | + -p:DebugType=embedded \ |
| 42 | + -p:EnableCompressionInSingleFile=true \ |
| 43 | + -p:PublishReadyToRun=false \ |
| 44 | + -p:PublishTrimmed=false \ |
| 45 | + -p:Version=0.0.${{ github.run_number }} |
| 46 | + - name: Build JSON Extension |
| 47 | + shell: bash |
| 48 | + run: | |
| 49 | + dotnet publish \ |
| 50 | + Extensions/Json/Microsoft.DataTransfer.JsonExtension/Microsoft.DataTransfer.JsonExtension.csproj \ |
| 51 | + --configuration release \ |
| 52 | + --output ${{ inputs.platform-short }}/Extensions \ |
| 53 | + --self-contained false \ |
| 54 | + --runtime ${{ inputs.runtime }} \ |
| 55 | + -p:PublishSingleFile=false \ |
| 56 | + -p:DebugType=embedded \ |
| 57 | + -p:EnableCompressionInSingleFile=true \ |
| 58 | + -p:PublishReadyToRun=false \ |
| 59 | + -p:PublishTrimmed=false \ |
| 60 | + -p:Version=0.0.${{ github.run_number }} |
| 61 | + - name: Build Azure Table Extension |
| 62 | + shell: bash |
| 63 | + run: | |
| 64 | + dotnet publish \ |
| 65 | + Extensions/AzureTableAPI/Microsoft.DataTransfer.AzureTableAPIExtension/Microsoft.DataTransfer.AzureTableAPIExtension.csproj \ |
| 66 | + --configuration release \ |
| 67 | + --output ${{ inputs.platform-short }}/Extensions \ |
| 68 | + --self-contained false \ |
| 69 | + --runtime ${{ inputs.runtime }} \ |
| 70 | + -p:PublishSingleFile=false \ |
| 71 | + -p:DebugType=embedded \ |
| 72 | + -p:EnableCompressionInSingleFile=true \ |
| 73 | + -p:PublishReadyToRun=false \ |
| 74 | + -p:PublishTrimmed=false \ |
| 75 | + -p:Version=0.0.${{ github.run_number }} |
| 76 | + - name: Build Mongo Extension |
| 77 | + shell: bash |
| 78 | + run: | |
| 79 | + dotnet publish \ |
| 80 | + Extensions/Mongo/Microsoft.DataTransfer.MongoExtension/Microsoft.DataTransfer.MongoExtension.csproj \ |
| 81 | + --configuration release \ |
| 82 | + --output ${{ inputs.platform-short }}/Extensions \ |
| 83 | + --self-contained false \ |
| 84 | + --runtime ${{ inputs.runtime }} \ |
| 85 | + -p:PublishSingleFile=false \ |
| 86 | + -p:DebugType=embedded \ |
| 87 | + -p:EnableCompressionInSingleFile=true \ |
| 88 | + -p:PublishReadyToRun=false \ |
| 89 | + -p:PublishTrimmed=false \ |
| 90 | + -p:Version=0.0.${{ github.run_number }} |
| 91 | + - name: Build SQL Server Extension |
| 92 | + shell: bash |
| 93 | + run: | |
| 94 | + dotnet publish \ |
| 95 | + Extensions/SqlServer/Microsoft.DataTransfer.SqlServerExtension/Microsoft.DataTransfer.SqlServerExtension.csproj \ |
| 96 | + --configuration release \ |
| 97 | + --output ${{ inputs.platform-short }}/Extensions \ |
| 98 | + --self-contained false \ |
| 99 | + --runtime ${{ inputs.runtime }} \ |
| 100 | + -p:PublishSingleFile=false \ |
| 101 | + -p:DebugType=embedded \ |
| 102 | + -p:EnableCompressionInSingleFile=true \ |
| 103 | + -p:PublishReadyToRun=false \ |
| 104 | + -p:PublishTrimmed=false \ |
| 105 | + -p:Version=0.0.${{ github.run_number }} |
| 106 | + - name: Upload package |
| 107 | + uses: actions/upload-artifact@v3 |
| 108 | + with: |
| 109 | + name: ${{ inputs.platform }}-package |
| 110 | + path: ${{ inputs.platform-short }}/ |
0 commit comments