Skip to content

Commit

Permalink
Lock nightly version
Browse files Browse the repository at this point in the history
  • Loading branch information
victorb committed Aug 9, 2024
1 parent 0909a59 commit 32acf6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/wasm-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev build-essential
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2024-07-30
override: true
default: nightly
default: nightly-2024-07-30
components: rustfmt, clippy, rust-src
target: wasm32-unknown-unknown
- name: make wasm-examples
Expand Down
2 changes: 1 addition & 1 deletion build-wasm-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EXAMPLES=(

for EXAMPLE in "${EXAMPLES[@]}"; do

RUSTFLAGS="-Zlocation-detail=none" cargo +nightly build --profile=wasm-release --no-default-features --example="$EXAMPLE" --target=wasm32-unknown-unknown -Z build-std-features=panic_immediate_abort -Z build-std=std,panic_abort -Z build-std-features="optimize_for_size"
RUSTFLAGS="-Zlocation-detail=none" cargo build --profile=wasm-release --no-default-features --example="$EXAMPLE" --target=wasm32-unknown-unknown -Z build-std-features=panic_immediate_abort -Z build-std=std,panic_abort -Z build-std-features="optimize_for_size"

time wasm-bindgen --out-name "$EXAMPLE" --no-typescript --out-dir web-src/wasm/examples --target web "target/wasm32-unknown-unknown/wasm-release/examples/$EXAMPLE.wasm"

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "nightly"
channel = "nightly-2024-07-30"

0 comments on commit 32acf6d

Please sign in to comment.