|
32 | 32 | uses: actions/checkout@v4 |
33 | 33 | with: |
34 | 34 | submodules: true |
| 35 | + - name: Get TinyGo version |
| 36 | + id: version |
| 37 | + run: ./.github/workflows/tinygo-extract-version.sh >> "$GITHUB_OUTPUT" |
35 | 38 | - name: Cache Go |
36 | 39 | uses: actions/cache@v4 |
37 | 40 | with: |
@@ -120,15 +123,15 @@ jobs: |
120 | 123 | - name: Build TinyGo release |
121 | 124 | run: | |
122 | 125 | make release deb -j3 STATIC=1 |
123 | | - cp -p build/release.tar.gz /tmp/tinygo.linux-amd64.tar.gz |
124 | | - cp -p build/release.deb /tmp/tinygo_amd64.deb |
| 126 | + cp -p build/release.tar.gz /tmp/tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz |
| 127 | + cp -p build/release.deb /tmp/tinygo_${{ steps.version.outputs.version }}_amd64.deb |
125 | 128 | - name: Publish release artifact |
126 | 129 | uses: actions/upload-artifact@v4 |
127 | 130 | with: |
128 | | - name: linux-amd64-double-zipped |
| 131 | + name: linux-amd64-double-zipped-${{ steps.version.outputs.version }} |
129 | 132 | path: | |
130 | | - /tmp/tinygo.linux-amd64.tar.gz |
131 | | - /tmp/tinygo_amd64.deb |
| 133 | + /tmp/tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz |
| 134 | + /tmp/tinygo_${{ steps.version.outputs.version }}_amd64.deb |
132 | 135 | test-linux-build: |
133 | 136 | # Test the binaries built in the build-linux job by running the smoke tests. |
134 | 137 | runs-on: ubuntu-latest |
@@ -297,6 +300,9 @@ jobs: |
297 | 300 | steps: |
298 | 301 | - name: Checkout |
299 | 302 | uses: actions/checkout@v4 |
| 303 | + - name: Get TinyGo version |
| 304 | + id: version |
| 305 | + run: ./.github/workflows/tinygo-extract-version.sh >> "$GITHUB_OUTPUT" |
300 | 306 | - name: Install apt dependencies |
301 | 307 | run: | |
302 | 308 | sudo apt-get update |
@@ -393,12 +399,12 @@ jobs: |
393 | 399 | - name: Create ${{ matrix.goarch }} release |
394 | 400 | run: | |
395 | 401 | make release deb RELEASEONLY=1 DEB_ARCH=${{ matrix.libc }} |
396 | | - cp -p build/release.tar.gz /tmp/tinygo.linux-${{ matrix.goarch }}.tar.gz |
397 | | - cp -p build/release.deb /tmp/tinygo_${{ matrix.libc }}.deb |
| 402 | + cp -p build/release.tar.gz /tmp/tinygo${{ steps.version.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz |
| 403 | + cp -p build/release.deb /tmp/tinygo_${{ steps.version.outputs.version }}_${{ matrix.libc }}.deb |
398 | 404 | - name: Publish release artifact |
399 | 405 | uses: actions/upload-artifact@v4 |
400 | 406 | with: |
401 | | - name: linux-${{ matrix.goarch }}-double-zipped |
| 407 | + name: linux-${{ matrix.goarch }}-double-zipped-${{ steps.version.outputs.version }} |
402 | 408 | path: | |
403 | | - /tmp/tinygo.linux-${{ matrix.goarch }}.tar.gz |
404 | | - /tmp/tinygo_${{ matrix.libc }}.deb |
| 409 | + /tmp/tinygo${{ steps.version.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz |
| 410 | + /tmp/tinygo_${{ steps.version.outputs.version }}_${{ matrix.libc }}.deb |
0 commit comments