Skip to content

Commit dd8a707

Browse files
authored
refactor!: node24 and esm (#17)
* chore!: upgrade node to v24 * chore!: upgrade default versions of tinygo and binaryen * refactor!: esm modules and bump actions libs * build: bundle directly from typescript source * ci: downgrade go to 1.25 for compatibility * chore: add missing dep in package.json
1 parent db56321 commit dd8a707

15 files changed

Lines changed: 34224 additions & 6085 deletions

File tree

.github/workflows/check-dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020

21-
- name: Set Node.js 20.x
21+
- name: Set Node.js 24.x
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20.x
24+
node-version: 24.x
2525

2626
- name: Install dependencies
2727
run: npm ci

.github/workflows/validate.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
- ubuntu-24.04-arm
1919
- windows-latest
2020
# - windows-11-arm - Binaryen does not provide binaries for Windows on ARM as of v123
21-
tinygo: ['0.36.0', '0.37.0']
21+
tinygo: ['0.39.0', '0.40.1']
2222
steps:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-go@v5
2525
with:
26-
go-version: '1.24'
26+
go-version: '1.25'
2727

2828
- name: setup-tinygo ${{ matrix.tinygo }}
2929
uses: ./
3030
with:
3131
tinygo-version: ${{ matrix.tinygo }}
32-
binaryen-version: '123'
32+
binaryen-version: '129'
3333

3434
- name: Verify version
3535
run: ./check-version.sh ${{ matrix.tinygo }}
@@ -48,12 +48,12 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-go@v5
5050
with:
51-
go-version: '1.24'
51+
go-version: '1.25'
5252

5353
- name: setup-tinygo
5454
uses: ./
5555
with:
56-
tinygo-version: '0.37.0'
56+
tinygo-version: '0.40.1'
5757
install-binaryen: 'false'
5858

5959
- name: Binaryen not installed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ steps:
1414
- uses: actions/checkout@v2
1515
- uses: acifani/setup-tinygo@v2
1616
with:
17-
tinygo-version: '0.30.0'
17+
tinygo-version: '0.40.1'
1818
```
1919
2020
### With matrix expansion
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
strategy:
2727
matrix:
28-
tinygo: ['0.29.0', '0.30.0']
28+
tinygo: ['0.39.0', '0.40.1']
2929
name: TinyGo ${{ matrix.tinygo }}
3030
steps:
3131
- uses: actions/checkout@v2
@@ -48,7 +48,7 @@ steps:
4848
go-version: 1.21
4949
- uses: acifani/setup-tinygo@v2
5050
with:
51-
tinygo-version: '0.30.0'
51+
tinygo-version: '0.40.1'
5252
```
5353

5454
### With custom Binaryen version
@@ -62,8 +62,8 @@ steps:
6262
- uses: actions/checkout@v2
6363
- uses: acifani/setup-tinygo@v2
6464
with:
65-
tinygo-version: '0.30.0'
66-
binaryen-version: '116'
65+
tinygo-version: '0.40.1'
66+
binaryen-version: '129'
6767
```
6868

6969
### Without Binaryen
@@ -75,6 +75,6 @@ steps:
7575
- uses: actions/checkout@v2
7676
- uses: acifani/setup-tinygo@v2
7777
with:
78-
tinygo-version: '0.30.0'
78+
tinygo-version: '0.40.1'
7979
install-binaryen: 'false'
8080
```

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ branding:
77
inputs:
88
tinygo-version:
99
description: 'The exact TinyGo version to download and use.'
10-
default: '0.30.0'
10+
default: '0.40.1'
1111
install-binaryen:
1212
description: 'Whether you want to install Binaryen or not.'
1313
default: 'true'
1414
binaryen-version:
1515
description: 'The exact Binaryen version to download and use.'
16-
default: '116'
16+
default: '129'
1717
runs:
18-
using: 'node20'
18+
using: 'node24'
1919
main: 'dist/index.js'

0 commit comments

Comments
 (0)