Skip to content

Commit

Permalink
chore: upgrade wasmtime to version 30.0.0. (#310)
Browse files Browse the repository at this point in the history
`wasmtime` 30.0.0 adds support for 32 bits platforms by using the `pulley` WASM interpreter instead of generating native code using `cranelift`. MRSV bumped to 1.82 as required by `wasmtime`.
  • Loading branch information
plusvic authored Feb 24, 2025
1 parent 187cbab commit 344880a
Show file tree
Hide file tree
Showing 6 changed files with 211 additions and 185 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.81.0
- uses: dtolnay/rust-toolchain@1.82.0
with:
components: clippy
- run: cargo clippy --tests --no-deps -- --deny clippy::all
Expand Down
23 changes: 20 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,28 @@ jobs:
# - win-gnu
- no-default-features
- protoc
- linux-32
include:
- build: msrv
os: ubuntu-latest
rust: 1.81.0
rust: 1.82.0
target: x86_64-unknown-linux-gnu
args: "--features=magic-module,rules-profiling"
rust_flags: "-Awarnings"
experimental: false

- build: stable
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
args: "--features=magic-module,rules-profiling"
rust_flags: "-Awarnings"
experimental: false

- build: nightly
os: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-gnu
args: "--features=magic-module,rules-profiling"
# Link is currently failing with rust-lld (rust-lang/rust#124129)
# Disable rust-lld with -Zlinker-features=-lld
Expand All @@ -50,13 +54,15 @@ jobs:
- build: macos
os: macos-latest
rust: stable
target: aarch64-apple-darwin
args: "--features=rules-profiling"
rust_flags: "-Awarnings"
experimental: false

- build: win-msvc
os: windows-latest
rust: stable
target: x86_64-win7-windows-msvc
args: "--features=rules-profiling"
rust_flags: "-Awarnings"
experimental: false
Expand All @@ -66,24 +72,34 @@ jobs:
#
# - build: win-gnu
# os: windows-latest
# target: x86_64-win7-windows-gnu
# rust: stable-x86_64-gnu
# args: ""
# experimental: false

- build: no-default-features
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
args: "--package yara-x --no-default-features --features=test_proto2-module,test_proto3-module,string-module,time-module,hash-module,macho-module,magic-module,math-module,lnk-module,elf-module,pe-module,dotnet-module,console-module"
rust_flags: "-Awarnings"
experimental: false

- build: protoc
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
args: "--package yara-x --features=protoc,magic-module"
rust_flags: "-Awarnings"
experimental: false

- build: 32bits
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
args: ""
rust_flags: "-Awarnings"
experimental: false

steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -101,7 +117,7 @@ jobs:
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libmagic-dev
sudo apt-get install -y libmagic-dev gcc-multilib
- name: Install protoc
if: matrix.build == 'protoc'
Expand All @@ -113,6 +129,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}

- name: Build
run: cargo build --all-targets ${{ matrix.args }}
Expand Down
Loading

0 comments on commit 344880a

Please sign in to comment.