Skip to content

Commit 460c4f3

Browse files
committed
build wasm
Signed-off-by: Derek Anderson <dmikey@users.noreply.github.com>
1 parent d0fc04e commit 460c4f3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/docker.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ jobs:
2222
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin
2323
docker build . --tag ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} -f Dockerfile
2424
docker push ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }}
25+
- uses: actions/setup-go@v5
26+
- name: Download and Setup container2wasm
27+
run: |
28+
wget https://github.com/ktock/container2wasm/releases/download/v0.6.5/container2wasm-v0.6.5-linux-amd64.tar.gz
29+
tar -xzf container2wasm-v0.6.5-linux-amd64.tar.gz
30+
chmod +x container2wasm-v0.6.5-linux-amd64/c2w
31+
sudo mv container2wasm-v0.6.5-linux-amd64/c2w /usr/local/bin/c2w
32+
- name: Build using container2wasm
33+
run: |
34+
c2w ghcr.io/${{ github.repository }}:${{ steps.vars.outputs.tag_name }} -o sd.wasm

0 commit comments

Comments
 (0)