Skip to content

Commit 4837e8b

Browse files
committed
remove wasm build
1 parent c3e9355 commit 4837e8b

1 file changed

Lines changed: 2 additions & 52 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -67,43 +67,9 @@ jobs:
6767
name: ${{ matrix.artifact_name }}
6868
path: ${{ matrix.artifact_name }}.tar.gz
6969

70-
build-web:
71-
name: Build WebAssembly
72-
runs-on: ubuntu-latest
73-
74-
steps:
75-
- uses: actions/checkout@v4
76-
77-
- name: Install Rust
78-
uses: dtolnay/rust-toolchain@stable
79-
with:
80-
targets: wasm32-unknown-unknown
81-
82-
- name: Install wasm-pack
83-
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
84-
85-
- name: Build WebAssembly
86-
run: |
87-
wasm-pack build --target web --out-dir pkg --release
88-
89-
- name: Create web artifact
90-
run: |
91-
mkdir -p web-dist
92-
cp -r pkg web-dist/
93-
cp -r data web-dist/
94-
cp index.html web-dist/
95-
cd web-dist
96-
tar -czf ../wcanvas-web.tar.gz *
97-
98-
- name: Upload web artifact
99-
uses: actions/upload-artifact@v4
100-
with:
101-
name: wcanvas-web
102-
path: wcanvas-web.tar.gz
103-
10470
release:
10571
name: Create Release
106-
needs: [build-native, build-web]
72+
needs: [build-native]
10773
runs-on: ubuntu-latest
10874
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
10975

@@ -129,23 +95,15 @@ jobs:
12995
body: |
13096
## Changes
13197
- Built for macOS (x86_64 and ARM64)
132-
- WebAssembly build for web browsers
13398
13499
## Downloads
135100
- **macOS (Intel)**: wcanvas-macos-x86_64.tar.gz
136101
- **macOS (Apple Silicon)**: wcanvas-macos-aarch64.tar.gz
137-
- **Web**: wcanvas-web.tar.gz
138102
139103
## Usage
140-
### Native (macOS)
141104
1. Download the appropriate archive for your system
142105
2. Extract the archive
143106
3. Run `./wcanvas`
144-
145-
### Web
146-
1. Download wcanvas-web.tar.gz
147-
2. Extract to a web server directory
148-
3. Open index.html in a modern web browser
149107
draft: false
150108
prerelease: false
151109

@@ -169,12 +127,4 @@ jobs:
169127
asset_name: wcanvas-macos-aarch64.tar.gz
170128
asset_content_type: application/gzip
171129

172-
- name: Upload Web Release Asset
173-
uses: actions/upload-release-asset@v1
174-
env:
175-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176-
with:
177-
upload_url: ${{ steps.create_release.outputs.upload_url }}
178-
asset_path: ./artifacts/wcanvas-web/wcanvas-web.tar.gz
179-
asset_name: wcanvas-web.tar.gz
180-
asset_content_type: application/gzip
130+

0 commit comments

Comments
 (0)