|
8 | 8 | types: [ opened, reopened, synchronize ] |
9 | 9 | workflow_call: |
10 | 10 | inputs: |
11 | | - platforms: |
12 | | - description: 'Platforms to build for' |
13 | | - required: false |
14 | | - type: string |
15 | 11 | latest: |
16 | 12 | description: 'Tag image as latest' |
17 | 13 | required: false |
@@ -99,37 +95,13 @@ jobs: |
99 | 95 | if-no-files-found: error |
100 | 96 |
|
101 | 97 |
|
102 | | - build-linux-web: |
| 98 | + build-linux-web-containers: |
103 | 99 | runs-on: ubuntu-latest |
104 | 100 |
|
105 | 101 | steps: |
106 | 102 | - name: Checkout |
107 | 103 | uses: actions/checkout@v4 |
108 | 104 |
|
109 | | - - name: Setup .NET SDK ${{ env.DOTNET_VERSION }} |
110 | | - uses: actions/setup-dotnet@v4 |
111 | | - with: |
112 | | - dotnet-version: ${{ env.DOTNET_VERSION }} |
113 | | - |
114 | | - - name: Cache NuGet packages |
115 | | - uses: actions/cache@v4 |
116 | | - with: |
117 | | - path: ~/.nuget/packages |
118 | | - key: linux-web-nuget |
119 | | - restore-keys: | |
120 | | - linux-web-nuget |
121 | | -
|
122 | | - - name: Publish OpenShock Web |
123 | | - run: dotnet publish Desktop/Desktop.csproj -c Release-Web -o ./publish/Web-Linux |
124 | | - |
125 | | - - name: Upload OpenShock Desktop Web Linux artifacts |
126 | | - uses: actions/upload-artifact@v4 |
127 | | - with: |
128 | | - name: OpenShock Desktop Web Linux |
129 | | - path: publish/Web-Linux/* |
130 | | - retention-days: 7 |
131 | | - if-no-files-found: error |
132 | | - |
133 | 105 | - name: Set up Docker Buildx |
134 | 106 | uses: docker/setup-buildx-action@v3 |
135 | 107 |
|
@@ -165,11 +137,19 @@ jobs: |
165 | 137 | push: ${{ inputs.latest || inputs.rc || (github.ref_protected && github.event_name != 'pull_request') }} |
166 | 138 | tags: ${{ steps.meta.outputs.tags }} |
167 | 139 | labels: ${{ steps.meta.outputs.labels }} |
168 | | - platforms: ${{ inputs.platforms || 'linux/amd64' }} |
| 140 | + platforms: 'linux/amd64,linux/arm64' |
169 | 141 | cache-from: | |
170 | 142 | type=gha |
171 | 143 | cache-to: | |
172 | 144 | type=gha |
| 145 | + |
| 146 | + - name: Upload OpenShock Desktop Web Linux artifacts |
| 147 | + uses: actions/upload-artifact@v4 |
| 148 | + with: |
| 149 | + name: OpenShock Desktop Web Linux |
| 150 | + path: publish/Web-Linux/* |
| 151 | + retention-days: 7 |
| 152 | + if-no-files-found: error |
173 | 153 |
|
174 | 154 | build-linux-photino: |
175 | 155 | runs-on: ubuntu-latest |
|
0 commit comments