Skip to content

Commit

Permalink
Merge pull request #3432 from wasmerio/init-2
Browse files Browse the repository at this point in the history
Amend changes to wasmer init
  • Loading branch information
fschutt authored Dec 21, 2022
2 parents b90fb24 + b6214d8 commit d5adde8
Show file tree
Hide file tree
Showing 59 changed files with 3,977 additions and 422 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ jobs:
# shell: bash
# run: |
# make build-wasmer-wasm
- name: Build Wapm binary
run: |
make build-wapm
- name: Install Nightly Rust for Headless
uses: dtolnay/rust-toolchain@nightly
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cloudcompiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
make build-wasmer-wasm &&
mkdir target/wasm32-wasi/release/cloudcompiler
cp target/wasm32-wasi/release/wasmer-compiler.wasm target/wasm32-wasi/release/cloudcompiler/cloudcompiler.wasm &&
cat << EOF > target/wasm32-wasi/release/cloudcompiler/wapm.toml
cat << EOF > target/wasm32-wasi/release/cloudcompiler/wasmer.toml
[package]
name = "${{ secrets.WAPM_DEV_USERNAME }}/cloudcompiler"
version = "0.1.0"
Expand All @@ -55,17 +55,17 @@ jobs:
name = "cloudcompiler"
module = "cloudcompiler"
EOF
- name: Fix wapm.toml version
- name: Fix wasmer.toml version
run: |
echo $(git tag | tail -n1) > ./version.txt
v=$(git describe --tags --abbrev=0) && \
echo "version = ${v}" &&
sed -i "s/version = \".*\"/version = \"${v}\"/g" target/wasm32-wasi/release/cloudcompiler/wapm.toml \
sed -i "s/version = \".*\"/version = \"${v}\"/g" target/wasm32-wasi/release/cloudcompiler/wasmer.toml \
- name: Build cloudcompiler.wasm
shell: bash
run: |
git tag &&
cat target/wasm32-wasi/release/cloudcompiler/wapm.toml &&
cat target/wasm32-wasi/release/cloudcompiler/wasmer.toml &&
echo "ls" &&
ls target/wasm32-wasi/release/cloudcompiler
- name: Publish to WAPM
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ api-docs-repo/
/src/windows-installer/WasmerInstaller.exe
/lib/c-api/wasmer.h
.xwin-cache
wapm.toml
wasmer.toml
# Generated by tests on Android
/avd
/core
Expand Down
Loading

0 comments on commit d5adde8

Please sign in to comment.