From afb584c34af1ab47515acfcddc43cfa56d66e527 Mon Sep 17 00:00:00 2001 From: syuparn Date: Wed, 22 Nov 2023 09:16:17 +0900 Subject: [PATCH] ci: replace wapm with artifact --- .github/workflows/{wapm.yml => wasi.yml} | 15 ++++++--------- .gitignore | 1 + wapm.toml | 20 -------------------- 3 files changed, 7 insertions(+), 29 deletions(-) rename .github/workflows/{wapm.yml => wasi.yml} (54%) delete mode 100644 wapm.toml diff --git a/.github/workflows/wapm.yml b/.github/workflows/wasi.yml similarity index 54% rename from .github/workflows/wapm.yml rename to .github/workflows/wasi.yml index caace89..7050ea0 100644 --- a/.github/workflows/wapm.yml +++ b/.github/workflows/wasi.yml @@ -1,4 +1,4 @@ -name: wapm +name: wasi on: push: @@ -16,13 +16,10 @@ jobs: uses: actions/setup-go@v2 with: go-version: "1.21" - - name: build wasm + - name: build wasi run: GOOS=wasip1 GOARCH=wasm go build -o pangaea.wasm - # deploy to wapm - - name: install wapm cli - uses: wasmerio/setup-wasmer@v1 - - name: publish to wapm - uses: wasmerio/wapm-publish@v1 + - name: upload wasi + uses: actions/upload-artifact@v3 with: - username: ${{ secrets.WAPM_USERNAME }} - password: ${{ secrets.WAPM_PASSWORD }} + name: wasi + path: pangaea.wasm diff --git a/.gitignore b/.gitignore index 66e1aca..d7e8850 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ pangaea.exe pangaea # wasm binary web/wasm/*.wasm +*.wasm # bundles in playground web/playground/*.wasm web/playground/wasm_exec.js diff --git a/wapm.toml b/wapm.toml deleted file mode 100644 index b131656..0000000 --- a/wapm.toml +++ /dev/null @@ -1,20 +0,0 @@ -[package] -name = "Syuparn/pangaea" -version = "0.12.0" -description = "A programming language for one-liner method chain lovers!" -license = "MIT" -repository = "https://github.com/Syuparn/Pangaea" -readme = "README.md" - -[[module]] -name = "pangaea" -source = "pangaea.wasm" -abi = "wasi" - -[module.interfaces] -wasi = "0.0.0-unstable" - -[[command]] -name = "pangaea" -module = "pangaea" -runner = "wasi@unstable_"