github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/.github/workflows/repro.sh (about)

     1  #!/usr/bin/env bash
     2  set -euo pipefail
     3  
     4  if [[ "$OSTYPE" == "linux"* ]]; then
     5    WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0-linux.tar.gz"
     6    BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-linux.tar.gz"
     7  elif [[ "$OSTYPE" == "darwin"* ]]; then
     8    WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0-macos.tar.gz"
     9    BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-macos.tar.gz"
    10  elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
    11    WASI_SDK="https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sdk-22.0.m-mingw.tar.gz"
    12    BINARYEN="https://github.com/WebAssembly/binaryen/releases/download/version_117/binaryen-version_117-x86_64-windows.tar.gz"
    13  fi
    14  
    15  # Download tools
    16  mkdir -p tools/
    17  [ -d "tools/wasi-sdk"* ]         || curl -#L "$WASI_SDK" | tar xzC tools &
    18  [ -d "tools/binaryen-version"* ] || curl -#L "$BINARYEN" | tar xzC tools &
    19  wait
    20  
    21  sqlite3/download.sh   # Download SQLite
    22  embed/build.sh        # Build Wasm
    23  git diff --exit-code  # Check diffs