|
4 | 4 | # For pushes to main, build binaries and store them as artifacts (also upload Docker images) |
5 | 5 | # For pushes to main with tags, also make a GitHub release. |
6 | 6 | push: |
7 | | - branches: |
8 | | - - main |
9 | | - tags: |
10 | | - - "v*" |
| 7 | +# branches: |
| 8 | +# - main |
| 9 | +# tags: |
| 10 | +# - "v*" |
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | build_binary: |
|
42 | 42 | curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.4/$PROTO_ZIP |
43 | 43 | unzip $PROTO_ZIP |
44 | 44 | echo "$HOME/d/protoc/bin" >> $GITHUB_PATH |
45 | | - export PATH=$PATH:$HOME/d/protoc/bin |
| 45 | +
|
| 46 | + if [ "${{ matrix.build }}" = "linux-aarch_64" ]; then |
| 47 | + export PATH=$PATH:$HOME/d/protoc/bin/protoc |
| 48 | + else |
| 49 | + export PATH=$PATH:$HOME/d/protoc/bin |
| 50 | + fi |
46 | 51 |
|
47 | 52 | if [ "${{ matrix.build }}" = "win64" ]; then |
48 | 53 | protoc.exe --version |
@@ -129,20 +134,20 @@ jobs: |
129 | 134 | type=semver,pattern={{version}} |
130 | 135 | type=semver,pattern={{major}}.{{minor}} |
131 | 136 |
|
132 | | - - name: Build and push Docker image (Linux only) |
133 | | - if: matrix.build == 'linux-x86_64' || matrix.build == 'linux-aarch_64' |
134 | | - uses: docker/build-push-action@v5 |
135 | | - with: |
136 | | - context: . |
137 | | - push: true |
138 | | - tags: ${{ steps.meta.outputs.tags }} |
139 | | - labels: ${{ steps.meta.outputs.labels }} |
140 | | - |
141 | | - - name: Upload binaries as artifacts |
142 | | - uses: actions/upload-artifact@v4 |
143 | | - with: |
144 | | - name: ${{ env.ARTIFACT }} |
145 | | - path: ${{ env.SOURCE }} |
| 137 | + # - name: Build and push Docker image (Linux only) |
| 138 | + # if: matrix.build == 'linux-x86_64' || matrix.build == 'linux-aarch_64' |
| 139 | + # uses: docker/build-push-action@v5 |
| 140 | + # with: |
| 141 | + # context: . |
| 142 | + # push: true |
| 143 | + # tags: ${{ steps.meta.outputs.tags }} |
| 144 | + # labels: ${{ steps.meta.outputs.labels }} |
| 145 | + # |
| 146 | + # - name: Upload binaries as artifacts |
| 147 | + # uses: actions/upload-artifact@v4 |
| 148 | + # with: |
| 149 | + # name: ${{ env.ARTIFACT }} |
| 150 | + # path: ${{ env.SOURCE }} |
146 | 151 |
|
147 | 152 | github_release: |
148 | 153 | name: Perform GitHub release |
@@ -181,12 +186,12 @@ jobs: |
181 | 186 | tar -C artifacts/seafowl-nightly-x86_64-apple-darwin -czf seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz seafowl |
182 | 187 | cd artifacts/seafowl-nightly-x86_64-pc-windows-msvc && zip -r ../../seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip seafowl.exe |
183 | 188 |
|
184 | | - - name: Upload release archive |
185 | | - uses: softprops/action-gh-release@v1 |
186 | | - with: |
187 | | - files: | |
188 | | - seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz |
189 | | - seafowl-${{ env.RELEASE_VERSION }}-aarch_64-unknown-linux-gnu.tar.gz |
190 | | - seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz |
191 | | - seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip |
192 | | - body_path: notes-${{ env.RELEASE_VERSION }}.md |
| 189 | +# - name: Upload release archive |
| 190 | +# uses: softprops/action-gh-release@v1 |
| 191 | +# with: |
| 192 | +# files: | |
| 193 | +# seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz |
| 194 | +# seafowl-${{ env.RELEASE_VERSION }}-aarch_64-unknown-linux-gnu.tar.gz |
| 195 | +# seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz |
| 196 | +# seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip |
| 197 | +# body_path: notes-${{ env.RELEASE_VERSION }}.md |
0 commit comments