Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update Go versions and streamline build process #15

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ jobs:
# This version must be <= max version of earliest TinyGo supported and >= min version of latest.
matrix:
go-version: # Note: Go only supports 2 versions: https://go.dev/doc/devel/release#policy
- "1.18" # Minimum Go version of latest TinyGo even if EOL.
- "1.22"
- "1.23"
tinygo-version: # Note: TinyGo only supports latest: https://github.com/tinygo-org/tinygo/releases
- "0.23.0" # Earliest version to support 1.18
- "0.26.0" # Latest
- "0.33.0"
- "0.34.0"
# - "0.35.0" // Currently Broken

steps:
- name: Set up Go
Expand All @@ -41,10 +43,10 @@ jobs:
uses: actions/checkout@v3

- name: Build example
run: tinygo build -o example/hello.wasm -scheduler=none --no-debug -target=wasi example/hello.go
run: make build

- name: Build test wasm
run: cd internal/e2e; make

- name: Test
run: go test -v ./...
run: make tests
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
build:
tinygo build -o example/hello.wasm -scheduler=none --no-debug -target=wasi example/hello.go
$(MAKE) -C internal/e2e build

tests:
go test -v ./...
$(MAKE) -C internal test
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/wapc/wapc-guest-tinygo

go 1.16
go 1.18
2 changes: 2 additions & 0 deletions internal/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
test:
go test -v ./...
Loading