Skip to content

Commit c396418

Browse files
aykevldeadprogram
authored andcommitted
1 parent 1b4ab77 commit c396418

3 files changed

Lines changed: 38 additions & 47 deletions

File tree

.github/workflows/build-macos.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,11 @@ jobs:
101101
- name: Make release artifact
102102
run: cp -p build/release.tar.gz build/tinygo${{ steps.version.outputs.version }}.darwin-${{ matrix.goarch }}.tar.gz
103103
- name: Publish release artifact
104-
# Note: this release artifact is double-zipped, see:
105-
# https://github.com/actions/upload-artifact/issues/39
106-
# We can essentially pick one of these:
107-
# - have a double-zipped artifact when downloaded from the UI
108-
# - have a very slow artifact upload
109-
# We're doing the former here, to keep artifact uploads fast.
110104
uses: actions/upload-artifact@v7
111105
with:
112106
name: darwin-${{ matrix.goarch }}-double-zipped-${{ steps.version.outputs.version }}
113107
path: build/tinygo${{ steps.version.outputs.version }}.darwin-${{ matrix.goarch }}.tar.gz
108+
archive: false
114109
- name: Smoke tests
115110
run: make smoketest TINYGO=$(PWD)/build/tinygo
116111
test-macos-homebrew:

.github/workflows/linux.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,18 @@ jobs:
118118
make release deb -j3 STATIC=1
119119
cp -p build/release.tar.gz /tmp/tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz
120120
cp -p build/release.deb /tmp/tinygo_${{ steps.version.outputs.version }}_amd64.deb
121-
- name: Publish release artifact
121+
- name: "Publish release artifact: tarball"
122122
uses: actions/upload-artifact@v7
123123
with:
124-
name: linux-amd64-double-zipped-${{ steps.version.outputs.version }}
125-
path: |
126-
/tmp/tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz
127-
/tmp/tinygo_${{ steps.version.outputs.version }}_amd64.deb
124+
name: tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz
125+
path: /tmp/tinygo${{ steps.version.outputs.version }}.linux-amd64.tar.gz
126+
archive: false
127+
- name: "Publish release artifact: Debian package"
128+
uses: actions/upload-artifact@v7
129+
with:
130+
name: tinygo_${{ steps.version.outputs.version }}_amd64.deb
131+
path: /tmp/tinygo_${{ steps.version.outputs.version }}_amd64.deb
132+
archive: false
128133
test-linux-build:
129134
# Test the binaries built in the build-linux job by running the smoke tests.
130135
runs-on: ubuntu-latest
@@ -146,9 +151,9 @@ jobs:
146151
- name: Install wasm-tools
147152
uses: bytecodealliance/actions/wasm-tools/setup@v1
148153
- name: Download release artifact
149-
uses: actions/download-artifact@v4
154+
uses: actions/download-artifact@v8
150155
with:
151-
name: linux-amd64-double-zipped-${{ needs.build-linux.outputs.version }}
156+
name: tinygo${{ needs.build-linux.outputs.version }}.linux-amd64.tar.gz
152157
- name: Extract release tarball
153158
run: |
154159
mkdir -p ~/lib
@@ -370,9 +375,9 @@ jobs:
370375
run: |
371376
make CROSS=${{ matrix.toolchain }}
372377
- name: Download amd64 release
373-
uses: actions/download-artifact@v4
378+
uses: actions/download-artifact@v8
374379
with:
375-
name: linux-amd64-double-zipped-${{ needs.build-linux.outputs.version }}
380+
name: tinygo${{ needs.build-linux.outputs.version }}.linux-amd64.tar.gz
376381
- name: Extract amd64 release
377382
run: |
378383
mkdir -p build/release
@@ -384,12 +389,17 @@ jobs:
384389
- name: Create ${{ matrix.goarch }} release
385390
run: |
386391
make release deb RELEASEONLY=1 DEB_ARCH=${{ matrix.libc }}
387-
cp -p build/release.tar.gz /tmp/tinygo${{ steps.version.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz
388-
cp -p build/release.deb /tmp/tinygo_${{ steps.version.outputs.version }}_${{ matrix.libc }}.deb
389-
- name: Publish release artifact
392+
cp -p build/release.tar.gz /tmp/tinygo${{ needs.build-linux.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz
393+
cp -p build/release.deb /tmp/tinygo_${{ needs.build-linux.outputs.version }}_${{ matrix.libc }}.deb
394+
- name: "Publish release artifact: tarball"
390395
uses: actions/upload-artifact@v7
391396
with:
392-
name: linux-${{ matrix.goarch }}-double-zipped-${{ steps.version.outputs.version }}
393-
path: |
394-
/tmp/tinygo${{ steps.version.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz
395-
/tmp/tinygo_${{ steps.version.outputs.version }}_${{ matrix.libc }}.deb
397+
name: linux-${{ matrix.goarch }}-double-zipped-${{ needs.build-linux.outputs.version }}
398+
path: /tmp/tinygo${{ needs.build-linux.outputs.version }}.linux-${{ matrix.goarch }}.tar.gz
399+
archive: false
400+
- name: "Publish release artifact: Debian package"
401+
uses: actions/upload-artifact@v7
402+
with:
403+
name: linux-${{ matrix.goarch }}-double-zipped-${{ needs.build-linux.outputs.version }}
404+
path: /tmp/tinygo_${{ needs.build-linux.outputs.version }}_${{ matrix.libc }}.deb
405+
archive: false

.github/workflows/windows.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,11 @@ jobs:
114114
working-directory: build/release
115115
run: 7z -tzip a tinygo${{ steps.version.outputs.version }}.windows-amd64.zip tinygo
116116
- name: Publish release artifact
117-
# Note: this release artifact is double-zipped, see:
118-
# https://github.com/actions/upload-artifact/issues/39
119-
# We can essentially pick one of these:
120-
# - have a dobule-zipped artifact when downloaded from the UI
121-
# - have a very slow artifact upload
122-
# We're doing the former here, to keep artifact uploads fast.
123117
uses: actions/upload-artifact@v7
124118
with:
125-
name: windows-amd64-double-zipped-${{ steps.version.outputs.version }}
119+
name: tinygo${{ steps.version.outputs.version }}.windows-amd64.zip
126120
path: build/release/tinygo${{ steps.version.outputs.version }}.windows-amd64.zip
121+
archive: false
127122

128123
smoke-test-windows:
129124
runs-on: windows-2022
@@ -149,14 +144,11 @@ jobs:
149144
go-version: '1.26.2'
150145
cache: true
151146
- name: Download TinyGo build
152-
uses: actions/download-artifact@v4
147+
uses: actions/download-artifact@v8
153148
with:
154-
name: windows-amd64-double-zipped-${{ needs.build-windows.outputs.version }}
149+
name: tinygo${{ needs.build-windows.outputs.version }}.windows-amd64.zip
155150
path: build/
156-
- name: Unzip TinyGo build
157-
shell: bash
158-
working-directory: build
159-
run: 7z x tinygo*.windows-amd64.zip -r
151+
# This build is already unzipped.
160152
- name: Smoke tests
161153
shell: bash
162154
run: make smoketest TINYGO=$(PWD)/build/tinygo/bin/tinygo
@@ -179,14 +171,11 @@ jobs:
179171
go-version: '1.26.2'
180172
cache: true
181173
- name: Download TinyGo build
182-
uses: actions/download-artifact@v4
174+
uses: actions/download-artifact@v8
183175
with:
184-
name: windows-amd64-double-zipped-${{ needs.build-windows.outputs.version }}
176+
name: tinygo${{ needs.build-windows.outputs.version }}.windows-amd64.zip
185177
path: build/
186-
- name: Unzip TinyGo build
187-
shell: bash
188-
working-directory: build
189-
run: 7z x tinygo*.windows-amd64.zip -r
178+
# This build is already unzipped.
190179
- name: Test stdlib packages
191180
run: make tinygo-test TINYGO=$(PWD)/build/tinygo/bin/tinygo
192181

@@ -214,13 +203,10 @@ jobs:
214203
go-version: '1.26.2'
215204
cache: true
216205
- name: Download TinyGo build
217-
uses: actions/download-artifact@v4
206+
uses: actions/download-artifact@v8
218207
with:
219-
name: windows-amd64-double-zipped-${{ needs.build-windows.outputs.version }}
208+
name: tinygo${{ needs.build-windows.outputs.version }}.windows-amd64.zip
220209
path: build/
221-
- name: Unzip TinyGo build
222-
shell: bash
223-
working-directory: build
224-
run: 7z x tinygo*.windows-amd64.zip -r
210+
# This build is already unzipped.
225211
- name: Test stdlib packages on wasip1
226212
run: make tinygo-test-wasip1-fast TINYGO=$(PWD)/build/tinygo/bin/tinygo

0 commit comments

Comments
 (0)