Skip to content

Commit

Permalink
Merge branch 'wasmer-5.1.0' into 5278-runtime-take-into-account-singl…
Browse files Browse the repository at this point in the history
…e-threaded-requirements
  • Loading branch information
xdoardo authored Jan 16, 2025
2 parents 66f84a9 + 5b512bc commit 6ae638b
Show file tree
Hide file tree
Showing 150 changed files with 4,721 additions and 1,349 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/cloudcompiler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
with:
toolchain: ${{ env.MSRV }}
target: ${{ matrix.target }}
- name: Install wasm32-wasi target
- name: Install wasm32-wasip1 target
shell: bash
run: |
rustup target add wasm32-wasi
rustup target add wasm32-wasip1
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v1
- name: Build cloudcompiler.wasm
shell: bash
run: |
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/wasmer.toml
mkdir target/wasm32-wasip1/release/cloudcompiler
cp target/wasm32-wasip1/release/wasmer-compiler.wasm target/wasm32-wasip1/release/cloudcompiler/cloudcompiler.wasm &&
cat << EOF > target/wasm32-wasip1/release/cloudcompiler/wasmer.toml
[package]
name = "${{ secrets.WAPM_DEV_USERNAME }}/cloudcompiler"
version = "0.1.0"
Expand All @@ -61,18 +61,18 @@ jobs:
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/wasmer.toml \
sed -i "s/version = \".*\"/version = \"${v}\"/g" target/wasm32-wasip1/release/cloudcompiler/wasmer.toml \
- name: Build cloudcompiler.wasm
shell: bash
run: |
git tag &&
cat target/wasm32-wasi/release/cloudcompiler/wasmer.toml &&
cat target/wasm32-wasip1/release/cloudcompiler/wasmer.toml &&
echo "ls" &&
ls target/wasm32-wasi/release/cloudcompiler
ls target/wasm32-wasip1/release/cloudcompiler
- name: Publish to WAPM
uses: wasmerio/wapm-publish@v1
with:
registry: https://registry.wapm.dev
directory: target/wasm32-wasi/release/cloudcompiler
directory: target/wasm32-wasip1/release/cloudcompiler
username: ${{ secrets.WAPM_DEV_USERNAME }}
password: ${{ secrets.WAPM_DEV_PASSWORD }}
55 changes: 12 additions & 43 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
targets: "wasm32-wasi"
targets: "wasm32-wasip1"
- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Expand Down Expand Up @@ -207,8 +207,8 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: rustup target add wasm32-wasi
run: rustup target add wasm32-wasi
- name: rustup target add wasm32-wasip1
run: rustup target add wasm32-wasip1
- name: make build-wasmer-wasm
run: make build-wasmer-wasm

Expand Down Expand Up @@ -815,7 +815,7 @@ jobs:
run: |
brew install automake
# using gnu-tar is a workaround for https://github.com/actions/cache/issues/403
brew install gnu-tar
brew install gnu-tar zstd
echo PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" >> $GITHUB_ENV
if: matrix.metadata.os == 'macos-13'
- name: Install Rust
Expand Down Expand Up @@ -1099,47 +1099,16 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: wasmer-cli-linux-x64
- name: Cargo Registry Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/advisory-db
~/.cargo/git
~/.cargo/registry
key: cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cargo target cache
uses: actions/cache@v3
with:
path: |
target/
key: cargo-release-${{ hashFiles('**/Cargo.lock') }}
- uses: wasmerio/setup-wasmer@v2
- uses: denoland/setup-deno@v1
- run: |
# install rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
# add wasmer cli to PATH
tar -xzf build-wasmer.tar.gz
docker build -t tmp .
docker run -v $PWD:/app -w /app tmp bash -c " \
cp ./bin/wasmer /root/.wasmer/bin/wasmer &&\
export MYSQL_HOST='${{ vars.INTEGRATION_TEST_MYSQL_HOST }}' &&\
export MYSQL_DBNAME='${{ vars.INTEGRATION_TEST_MYSQL_DBNAME }}' &&\
export MYSQL_USERNAME='${{ secrets.INTEGRATION_TEST_MYSQL_USERNAME }}' &&\
export MYSQL_PASSWORD='${{ secrets.INTEGRATION_TEST_MYSQL_PASSWORD }}' &&\
export MYSQL_PORT='${{ vars.INTEGRATION_TEST_MYSQL_PORT }}' &&\
export MYSQL_CERT='${{ secrets.INTEGRATION_TEST_MYSQL_CERT }}' &&\
export PG_HOST='${{ vars.INTEGRATION_TEST_PG_HOST }}' &&\
export PG_DBNAME='${{ vars.INTEGRATION_TEST_PG_DBNAME }}' &&\
export PG_USERNAME='${{ secrets.INTEGRATION_TEST_PG_USERNAME }}' &&\
export PG_PASSWORD='${{ secrets.INTEGRATION_TEST_PG_PASSWORD }}' &&\
export PG_PORT='${{ vars.INTEGRATION_TEST_PG_PORT }}' &&\
wasmer config set registry.url https://registry.wasmer.io/graphql &&\
wasmer login '${{ secrets.WAPM_PROD_TOKEN }}' &&\
wasmer config set registry.url https://registry.wasmer.wtf/graphql &&\
wasmer login '${{ secrets.WAPM_DEV_TOKEN }}' &&\
cargo test --no-fail-fast"
cp ./bin/wasmer ~/.wasmer/bin/wasmer
- name: test
env:
WASMER_REGISTRY: https://registry.wasmer.wtf/graphql
WASMER_TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
run: deno test --allow-all --parallel
- name: notify failure in slack
if: failure()
run: |
Expand Down
64 changes: 63 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,69 @@
Looking for changes that affect our C API? See the [C API Changelog](lib/c-api/CHANGELOG.md).


## **Unreleased**
## 5.0.5-rc1 - 03/01/2025
Fixed an error in `wasmer create-exe` that prevented the correct execution and various improvements to the FS in WASIX.

## Added

- [#5315](https://github.com/wasmerio/wasmer/pull/5315) Implement cross-FS file rename

## Changed

- [#5321](https://github.com/wasmerio/wasmer/pull/5321) Flush before closing files to avoid missed writes

## Fixed

- [#5320](https://github.com/wasmerio/wasmer/pull/5320) Fix "error: GitHub API: more that one release selected" in `create-exe`



## 5.0.4 - 17/12/2024

This release fixes minor bugs and adds spurious improvements.

## Added


## Changed

- [#5305](https://github.com/wasmerio/wasmer/pull/5305) make `AppConfig.name` optional in wasmer-config
- [#5292](https://github.com/wasmerio/wasmer/pull/5292) Pass readme content instead of readme file name
- [#5300](https://github.com/wasmerio/wasmer/pull/5300) Refactor path_create_directory and path_remove_directory to…
- [#5277](https://github.com/wasmerio/wasmer/pull/5277) Rephrase the description for `--no-persist-id`
- [#5291](https://github.com/wasmerio/wasmer/pull/5291) chore(wasix): make Capabilities hashable
- [#5293](https://github.com/wasmerio/wasmer/pull/5293) LoongArch: Switch to the medium code model

## Fixed

- [#5306](https://github.com/wasmerio/wasmer/pull/5306) Fix build for 32bit targets (usize == u32)
- [#5307](https://github.com/wasmerio/wasmer/pull/5307) A few WASIX FS-related fixes
- [#5285](https://github.com/wasmerio/wasmer/pull/5285) Fix handling of the root path in WasiFS resulting in a bad inode structure
- [#5294](https://github.com/wasmerio/wasmer/pull/5294) Fix typo in readme file



## 5.0.3 - 07/12/2024

This release adds support for a more fine-grained and flexible control over the network sandbox. Also, some bug fixes
and improvements are included.

## Added

- [#5274](https://github.com/wasmerio/wasmer/pull/5274) feat(config): Add (Named)PackageIdent::matches_id helpers

## Changed

- [#5288](https://github.com/wasmerio/wasmer/pull/5288) Bump up macos runner versions
- [#5283](https://github.com/wasmerio/wasmer/pull/5283) Better network sandbox
- [#5243](https://github.com/wasmerio/wasmer/pull/5243) Support multiple heterogeneous backends at the same time
- [#5275](https://github.com/wasmerio/wasmer/pull/5275) Protect preopened inodes from being closed
- [#5264](https://github.com/wasmerio/wasmer/pull/5264) update running wasmer-integration-tests in CI

## Fixed




## 5.0.2 - 22/11/2024

Expand Down
Loading

0 comments on commit 6ae638b

Please sign in to comment.