Skip to content

Commit

Permalink
Merge pull request #470 from tijlleenders/tijl/-/fix-bash-for-nixos
Browse files Browse the repository at this point in the history
nixos-compatible bash
  • Loading branch information
tijlleenders authored Oct 25, 2024
2 parents f3630cf + 42ef03e commit 6f47605
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,20 @@ jobs:
with:
deno-version: v1.x

- name: Install wabt
run: |
set -e
curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.13/wabt-1.0.13-linux.tar.gz | tar xzf -
echo "`pwd`/wabt-1.0.13" > $GITHUB_PATH
- name: Install binaryen
run: |
set -e
curl -L https://github.com/WebAssembly/binaryen/releases/download/1.39.1/binaryen-1.39.1-x86_64-linux.tar.gz | tar xzf -
echo "`pwd`/binaryen-1.39.1" > $GITHUB_PATH
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Install wasm-bindgen
run: cargo install wasm-bindgen-cli

- name: Add wasm target
run: rustup target add wasm32-unknown-unknown

- name: Pin wasm-bindgen version
run: cargo update -p wasm-bindgen --precise 0.2.95

- name: Run tests
run: ./scripts/deno_test.sh
2 changes: 1 addition & 1 deletion scripts/deno_bench.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

deno bench --unstable --allow-read
2 changes: 1 addition & 1 deletion scripts/deno_test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -euo pipefail

Expand Down

0 comments on commit 6f47605

Please sign in to comment.