Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 55 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,86 @@
name: CI
on: [pull_request]

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:
test-ubuntu:
name: Test-ubuntu
runs-on: ubuntu-latest

strategy:
matrix:
rust: [stable, beta, nightly]
toolchain:
- stable
- beta
- nightly

steps:
- uses: actions/checkout@master
- name: Install Rust (
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- uses: actions/checkout@v7

- name: Install Rust Toolchain (${{ matrix.toolchain }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy

- run: cargo test --features=checks --release

- run: cargo run --release --features=checks --example hello

test-macos:
name: Test-macos
runs-on: macos-latest

strategy:
matrix:
rust: [stable, beta, nightly]
toolchain:
- stable
- beta
- nightly

steps:
- uses: actions/checkout@master
- name: Install Rust (
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- uses: actions/checkout@v7

- name: Install Rust Toolchain (${{ matrix.toolchain }})
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy

- run: cargo test --features=checks --release

- run: cargo run --release --features=checks --example hello

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update stable && rustup default stable && rustup component add rustfmt
- uses: actions/checkout@v7

- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- run: cargo fmt -- --check

wasm:
name: WebAssembly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update stable && rustup default stable && rustup target add wasm32-unknown-unknown
- run: cargo build --target wasm32-unknown-unknown
- run: cargo build --target wasm32-unknown-unknown --release
- uses: actions/checkout@v7

- name: Install Rust Toolchain (stable)
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none
components: rustfmt, clippy

- run: cargo build --target wasm32v1-none

- run: cargo build --target wasm32v1-none --release
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! currently.
//!
//! The primary purpose of this crate is that it serves as the default memory
//! allocator for the `wasm32-unknown-unknown` target in the standard library.
//! allocator for the `wasm32v1-none` target in the standard library.
//! Support for other platforms is largely untested and unused, but is used when
//! testing this crate.

Expand Down