|
25 | 25 | -os:macos-14 |
26 | 26 | goarch:arm64 |
27 | 27 | runs-on:${{ matrix.os }} |
| 28 | +outputs: |
| 29 | +version:${{ steps.version.outputs.version }} |
28 | 30 | steps: |
29 | 31 | -name:Install Dependencies |
30 | 32 | run:| |
@@ -119,8 +121,28 @@ jobs: |
119 | 121 | with: |
120 | 122 | name:darwin-${{ matrix.goarch }}-double-zipped-${{ steps.version.outputs.version }} |
121 | 123 | path:build/tinygo${{ steps.version.outputs.version }}.darwin-${{ matrix.goarch }}.tar.gz |
| 124 | +smoke-test-macos: |
| 125 | +runs-on:macos-latest# this is arm64 |
| 126 | +needs:build-macos |
| 127 | +steps: |
| 128 | + -name:Checkout |
| 129 | +uses:actions/checkout@v4 |
| 130 | + -name:Install Go |
| 131 | +uses:actions/setup-go@v5 |
| 132 | +with: |
| 133 | +go-version:'1.24' |
| 134 | +cache:true |
| 135 | + -name:Download release artifact |
| 136 | +uses:actions/download-artifact@v4 |
| 137 | +with: |
| 138 | +name:darwin-arm64-double-zipped-${{ needs.build-macos.outputs.version }} |
| 139 | + -name:Extract release tarball |
| 140 | +run:| |
| 141 | + mkdir -p ~/lib |
| 142 | + tar -C ~/lib -xf tinygo${{ needs.build-macos.outputs.version }}.darwin-arm64.tar.gz |
| 143 | + ln -s ~/lib/tinygo/bin/tinygo ~/go/bin/tinygo |
122 | 144 | -name:Smoke tests |
123 | | -run:make smoketest TINYGO=$(PWD)/build/tinygo |
| 145 | +run:make smoketest |
124 | 146 | test-macos-homebrew: |
125 | 147 | name:homebrew-install |
126 | 148 | runs-on:macos-latest |
|