chore(deps): bump keccak from 0.1.4 to 0.1.6 (#5782) #1169
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Generate cargo docs & engines size | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| publish-to-gh-pages: | |
| runs-on: ubuntu-latest | |
| env: | |
| CSV_PATH: engines-size/data.csv | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/include/rust-wasm-setup | |
| - name: Build Wasm modules | |
| env: | |
| WASM_BUILD_PROFILE: release | |
| PKG_DIR: query-compiler/query-compiler-wasm/pkg | |
| TARGET_DIR: target/query-compiler-wasm | |
| run: | | |
| make build-qc-gz | |
| mkdir -p $TARGET_DIR | |
| for provider in "postgresql" "mysql" "sqlite" "sqlserver" "cockroachdb"; do | |
| for build in "fast" "small"; do | |
| cp $PKG_DIR/$provider/query_compiler_${build}_bg.wasm $TARGET_DIR/query-compiler-$build-$provider.wasm | |
| cp $PKG_DIR/${provider}_${build}.gz $TARGET_DIR/query-compiler-$build-$provider.wasm.gz | |
| done | |
| done | |
| - name: Check out gh-pages branch | |
| run: | | |
| git fetch --depth=1 origin gh-pages | |
| git checkout origin/gh-pages | |
| - name: Update engines size | |
| run: | | |
| files=( | |
| target/query-compiler-wasm/query-compiler-{fast,small}-{postgresql,mysql,sqlite,sqlserver,cockroachdb}.{wasm,wasm.gz} | |
| ) | |
| DATE_TIME="$(date -u --iso-8601=seconds)" | |
| if [[ ! -f $CSV_PATH ]]; then | |
| echo "date_time,branch,commit,file,size_bytes" > "$CSV_PATH" | |
| fi | |
| for file in "${files[@]}"; do | |
| file_name=$(basename "$file") | |
| size=$(stat -c %s "$file") | |
| echo "$DATE_TIME,$GITHUB_REF_NAME,$GITHUB_SHA,$file_name,$size" >> "$CSV_PATH" | |
| done | |
| - name: Commit the changes | |
| run: | | |
| git config user.email "prismabots@gmail.com" | |
| git config user.name "prisma-bot" | |
| git add "$CSV_PATH" | |
| git commit --quiet -m "update engines size for $GITHUB_SHA" | |
| git push origin '+HEAD:gh-pages' |