Browse Source

post a token example

remotes/origin/use-bnz
Gal Schlezinger 9 months ago
parent
commit
116f3735af
  1. 823
      .github/workflows/rust.yml

823
.github/workflows/rust.yml

@ -14,417 +14,424 @@ env:
RUST_VERSION: "1.78" RUST_VERSION: "1.78"
jobs: jobs:
fmt: post_token:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: hecrj/setup-rust-action@v1 - name: Post token
with: run: curl "https://benchy.hagever.com/api/test?token=$GITHUB_TOKEN" -X POST
rust-version: ${{env.RUST_VERSION}}
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: cargo fmt
run: cargo fmt -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: cargo clippy
run: cargo clippy -- -D warnings
unit_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: Run tests
run: cargo test
build_release:
runs-on: windows-latest
name: "Release build for Windows"
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: Build release binary
run: cargo build --release
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- uses: actions/upload-artifact@v3
with:
name: fnm-windows
path: target/release/fnm.exe
build_macos_release:
runs-on: macos-latest
name: "Release build for macOS"
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v3
- name: Build release binary
run: cargo build --release
env:
LZMA_API_STATIC: "true"
- name: Strip binary from debug symbols
run: strip target/release/fnm
- name: List dynamically linked libraries
run: otool -L target/release/fnm
- uses: actions/upload-artifact@v3
with:
name: fnm-macos
path: target/release/fnm
e2e_macos:
runs-on: macos-latest
needs: [build_macos_release]
name: "e2e/macos"
steps:
- name: install necessary shells
run: brew install fish zsh bash
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: fnm-macos
path: target/release
- name: mark binary as executable
run: chmod +x target/release/fnm
- uses: pnpm/action-setup@v2.2.4
with:
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm test
env:
FNM_TARGET_NAME: "release"
FORCE_COLOR: "1"
e2e_windows:
runs-on: windows-latest
needs: [build_release]
name: "e2e/windows"
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: fnm-windows
path: target/release
- uses: pnpm/action-setup@v2.2.4
with:
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "pnpm"
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- run: pnpm test
env: env:
FNM_TARGET_NAME: "release" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "1" # fmt:
# runs-on: ubuntu-latest
# e2e_windows_debug: # steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: ${{env.RUST_VERSION}}
# - uses: Swatinem/rust-cache@v2
# - uses: actions/checkout@v3
# - name: cargo fmt
# run: cargo fmt -- --check
#
# clippy:
# runs-on: ubuntu-latest
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: ${{env.RUST_VERSION}}
# - uses: Swatinem/rust-cache@v2
# - uses: actions/checkout@v3
# - name: cargo clippy
# run: cargo clippy -- -D warnings
#
# unit_tests:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, macOS-latest, windows-latest]
# steps:
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: ${{env.RUST_VERSION}}
# - uses: Swatinem/rust-cache@v2
# - uses: actions/checkout@v3
# - name: Run tests
# run: cargo test
#
# build_release:
# runs-on: windows-latest # runs-on: windows-latest
# name: "e2e/windows/debug" # name: "Release build for Windows"
# environment: Debug
# needs: [e2e_windows]
# if: contains(join(needs.*.result, ','), 'failure')
# steps: # steps:
# - uses: actions/checkout@v3 # - uses: hecrj/setup-rust-action@v1
# - uses: actions/download-artifact@v3 # with:
# with: # rust-version: ${{env.RUST_VERSION}}
# name: fnm-windows # - uses: Swatinem/rust-cache@v2
# path: target/release # - uses: actions/checkout@v3
# - uses: pnpm/action-setup@v2.2.2 # - name: Build release binary
# with: # run: cargo build --release
# run_install: false # env:
# - uses: actions/setup-node@v3 # RUSTFLAGS: "-C target-feature=+crt-static"
# with: # - uses: actions/upload-artifact@v3
# node-version: 18.x # with:
# cache: 'pnpm' # name: fnm-windows
# - name: Get pnpm store directory # path: target/release/fnm.exe
# id: pnpm-cache #
# run: | # build_macos_release:
# echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" # runs-on: macos-latest
# - uses: actions/cache@v3 # name: "Release build for macOS"
# name: Setup pnpm cache # steps:
# with: # - uses: hecrj/setup-rust-action@v1
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} # with:
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # rust-version: ${{env.RUST_VERSION}}
# restore-keys: | # - uses: Swatinem/rust-cache@v2
# ${{ runner.os }}-pnpm-store- # - uses: actions/checkout@v3
# - run: pnpm install # - name: Build release binary
# - name: 🐛 Debug Build # run: cargo build --release
# uses: mxschmitt/action-tmate@v3 # env:
# LZMA_API_STATIC: "true"
e2e_linux: # - name: Strip binary from debug symbols
runs-on: ubuntu-latest # run: strip target/release/fnm
needs: [build_static_linux_binary] # - name: List dynamically linked libraries
name: "e2e/linux" # run: otool -L target/release/fnm
steps: # - uses: actions/upload-artifact@v3
- name: install necessary shells # with:
run: sudo apt-get update && sudo apt-get install -y fish zsh bash # name: fnm-macos
- uses: actions/checkout@v3 # path: target/release/fnm
- uses: actions/download-artifact@v3 #
with: # e2e_macos:
name: fnm-linux # runs-on: macos-latest
path: target/release # needs: [build_macos_release]
- name: mark binary as executable # name: "e2e/macos"
run: chmod +x target/release/fnm # steps:
- uses: pnpm/action-setup@v2.2.4 # - name: install necessary shells
with: # run: brew install fish zsh bash
run_install: false # - uses: actions/checkout@v3
- uses: actions/setup-node@v3 # - uses: actions/download-artifact@v3
with: # with:
node-version: 18.x # name: fnm-macos
cache: "pnpm" # path: target/release
- name: Get pnpm store directory # - name: mark binary as executable
id: pnpm-cache # run: chmod +x target/release/fnm
run: | # - uses: pnpm/action-setup@v2.2.4
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" # with:
- uses: actions/cache@v3 # run_install: false
name: Setup pnpm cache # - uses: actions/setup-node@v3
with: # with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} # node-version: 18.x
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # cache: "pnpm"
restore-keys: | # - name: Get pnpm store directory
${{ runner.os }}-pnpm-store- # id: pnpm-cache
- run: pnpm install # run: |
- run: pnpm test # echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
env: # - uses: actions/cache@v3
FNM_TARGET_NAME: "release" # name: Setup pnpm cache
FORCE_COLOR: "1" # with:
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
build_static_linux_binary: # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
name: "Build static Linux binary" # restore-keys: |
runs-on: ubuntu-latest # ${{ runner.os }}-pnpm-store-
steps: # - run: pnpm install
- uses: hecrj/setup-rust-action@v1 # - run: pnpm test
with: # env:
rust-version: ${{env.RUST_VERSION}} # FNM_TARGET_NAME: "release"
targets: x86_64-unknown-linux-musl # FORCE_COLOR: "1"
- uses: Swatinem/rust-cache@v2 #
with: # e2e_windows:
key: static-linux-binary # runs-on: windows-latest
- name: Install musl tools # needs: [build_release]
run: | # name: "e2e/windows"
sudo apt-get update # steps:
sudo apt-get install -y --no-install-recommends musl-tools # - uses: actions/checkout@v3
- uses: actions/checkout@v3 # - uses: actions/download-artifact@v3
- name: Build release binary # with:
run: cargo build --release --target x86_64-unknown-linux-musl # name: fnm-windows
- name: Strip binary from debug symbols # path: target/release
run: strip target/x86_64-unknown-linux-musl/release/fnm # - uses: pnpm/action-setup@v2.2.4
- uses: actions/upload-artifact@v3 # with:
with: # run_install: false
name: fnm-linux # - uses: actions/setup-node@v3
path: target/x86_64-unknown-linux-musl/release/fnm # with:
# node-version: 18.x
build_static_arm_binary: # cache: "pnpm"
name: "Build ARM binary" # - name: Get pnpm store directory
strategy: # id: pnpm-cache
matrix: # run: |
include: # echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- arch: arm64 # - uses: actions/cache@v3
rust_target: aarch64-unknown-linux-musl # name: Setup pnpm cache
docker_image: arm64v8/ubuntu # with:
docker_platform: aarch64 # path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
- arch: arm32 # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
rust_target: armv7-unknown-linux-gnueabihf # restore-keys: |
docker_image: arm32v7/ubuntu # ${{ runner.os }}-pnpm-store-
docker_platform: armv7 # - run: pnpm install
runs-on: ubuntu-latest # - run: pnpm test
env: # env:
RUST_TARGET: ${{ matrix.rust_target }} # FNM_TARGET_NAME: "release"
steps: # FORCE_COLOR: "1"
- name: Set up QEMU #
id: qemu # # e2e_windows_debug:
uses: docker/setup-qemu-action@v2 # # runs-on: windows-latest
- uses: hecrj/setup-rust-action@v1 # # name: "e2e/windows/debug"
with: # # environment: Debug
rust-version: ${{env.RUST_VERSION}} # # needs: [e2e_windows]
- uses: Swatinem/rust-cache@v2 # # if: contains(join(needs.*.result, ','), 'failure')
with: # # steps:
key: arm-binary-${{ matrix.arch }} # # - uses: actions/checkout@v3
- name: "Download `cross` crate" # # - uses: actions/download-artifact@v3
run: cargo install cross # # with:
- uses: actions/checkout@v3 # # name: fnm-windows
- name: "Build release" # # path: target/release
run: cross build --target $RUST_TARGET --release # # - uses: pnpm/action-setup@v2.2.2
- uses: uraimo/run-on-arch-action@v2.1.2 # # with:
name: Sanity test # # run_install: false
with: # # - uses: actions/setup-node@v3
arch: ${{matrix.docker_platform}} # # with:
distro: ubuntu18.04 # # node-version: 18.x
# # cache: 'pnpm'
# Not required, but speeds up builds by storing container images in # # - name: Get pnpm store directory
# a GitHub package registry. # # id: pnpm-cache
githubToken: ${{ github.token }} # # run: |
# # echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
env: | # # - uses: actions/cache@v3
RUST_LOG: fnm=debug # # name: Setup pnpm cache
# # with:
dockerRunArgs: | # # path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
--volume "${PWD}/target/${{matrix.rust_target}}/release:/artifacts" # # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# # restore-keys: |
# Set an output parameter `uname` for use in subsequent steps # # ${{ runner.os }}-pnpm-store-
run: | # # - run: pnpm install
echo "Hello from $(uname -a)" # # - name: 🐛 Debug Build
/artifacts/fnm --version # # uses: mxschmitt/action-tmate@v3
echo "fnm install 12.0.0" #
/artifacts/fnm install 12.0.0 # e2e_linux:
echo "fnm exec --using=12 -- node --version" # runs-on: ubuntu-latest
/artifacts/fnm exec --using=12 -- node --version # needs: [build_static_linux_binary]
# name: "e2e/linux"
- uses: actions/upload-artifact@v3 # steps:
with: # - name: install necessary shells
name: fnm-${{ matrix.arch }} # run: sudo apt-get update && sudo apt-get install -y fish zsh bash
path: target/${{ env.RUST_TARGET }}/release/fnm # - uses: actions/checkout@v3
# - uses: actions/download-artifact@v3
ensure_commands_markdown_is_up_to_date: # with:
runs-on: ubuntu-latest # name: fnm-linux
name: Ensure command docs are up-to-date # path: target/release
needs: [build_static_linux_binary] # - name: mark binary as executable
steps: # run: chmod +x target/release/fnm
- name: install necessary shells # - uses: pnpm/action-setup@v2.2.4
run: sudo apt-get update && sudo apt-get install -y fish zsh bash # with:
- uses: actions/checkout@v3 # run_install: false
- uses: actions/download-artifact@v3 # - uses: actions/setup-node@v3
with: # with:
name: fnm-linux # node-version: 18.x
path: target/release # cache: "pnpm"
- name: mark binary as executable # - name: Get pnpm store directory
run: chmod +x target/release/fnm # id: pnpm-cache
- name: install fnm as binary # run: |
run: | # echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
sudo install target/release/fnm /bin # - uses: actions/cache@v3
fnm --version # name: Setup pnpm cache
- uses: pnpm/action-setup@v2.2.4 # with:
with: # path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
run_install: false # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
- uses: actions/setup-node@v3 # restore-keys: |
with: # ${{ runner.os }}-pnpm-store-
node-version: 18.x # - run: pnpm install
cache: "pnpm" # - run: pnpm test
- name: Get pnpm store directory # env:
id: pnpm-cache # FNM_TARGET_NAME: "release"
run: | # FORCE_COLOR: "1"
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" #
- uses: actions/cache@v3 # build_static_linux_binary:
name: Setup pnpm cache # name: "Build static Linux binary"
with: # runs-on: ubuntu-latest
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} # steps:
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # - uses: hecrj/setup-rust-action@v1
restore-keys: | # with:
${{ runner.os }}-pnpm-store- # rust-version: ${{env.RUST_VERSION}}
- run: pnpm install # targets: x86_64-unknown-linux-musl
- name: Generate command markdown # - uses: Swatinem/rust-cache@v2
run: | # with:
pnpm run generate-command-docs --check --binary-path=$(which fnm) # key: static-linux-binary
# - name: Install musl tools
# run: |
# sudo apt-get update
# sudo apt-get install -y --no-install-recommends musl-tools
# - uses: actions/checkout@v3
# - name: Build release binary
# run: cargo build --release --target x86_64-unknown-linux-musl
# - name: Strip binary from debug symbols
# run: strip target/x86_64-unknown-linux-musl/release/fnm
# - uses: actions/upload-artifact@v3
# with:
# name: fnm-linux
# path: target/x86_64-unknown-linux-musl/release/fnm
#
# build_static_arm_binary:
# name: "Build ARM binary"
# strategy:
# matrix:
# include:
# - arch: arm64
# rust_target: aarch64-unknown-linux-musl
# docker_image: arm64v8/ubuntu
# docker_platform: aarch64
# - arch: arm32
# rust_target: armv7-unknown-linux-gnueabihf
# docker_image: arm32v7/ubuntu
# docker_platform: armv7
# runs-on: ubuntu-latest
# env:
# RUST_TARGET: ${{ matrix.rust_target }}
# steps:
# - name: Set up QEMU
# id: qemu
# uses: docker/setup-qemu-action@v2
# - uses: hecrj/setup-rust-action@v1
# with:
# rust-version: ${{env.RUST_VERSION}}
# - uses: Swatinem/rust-cache@v2
# with:
# key: arm-binary-${{ matrix.arch }}
# - name: "Download `cross` crate"
# run: cargo install cross
# - uses: actions/checkout@v3
# - name: "Build release"
# run: cross build --target $RUST_TARGET --release
# - uses: uraimo/run-on-arch-action@v2.1.2
# name: Sanity test
# with:
# arch: ${{matrix.docker_platform}}
# distro: ubuntu18.04
#
# # Not required, but speeds up builds by storing container images in
# # a GitHub package registry.
# githubToken: ${{ github.token }}
#
# env: |
# RUST_LOG: fnm=debug
#
# dockerRunArgs: |
# --volume "${PWD}/target/${{matrix.rust_target}}/release:/artifacts"
#
# # Set an output parameter `uname` for use in subsequent steps
# run: |
# echo "Hello from $(uname -a)"
# /artifacts/fnm --version
# echo "fnm install 12.0.0"
# /artifacts/fnm install 12.0.0
# echo "fnm exec --using=12 -- node --version"
# /artifacts/fnm exec --using=12 -- node --version
#
# - uses: actions/upload-artifact@v3
# with:
# name: fnm-${{ matrix.arch }}
# path: target/${{ env.RUST_TARGET }}/release/fnm
#
# ensure_commands_markdown_is_up_to_date:
# runs-on: ubuntu-latest
# name: Ensure command docs are up-to-date
# needs: [build_static_linux_binary]
# steps:
# - name: install necessary shells
# run: sudo apt-get update && sudo apt-get install -y fish zsh bash
# - uses: actions/checkout@v3
# - uses: actions/download-artifact@v3
# with:
# name: fnm-linux
# path: target/release
# - name: mark binary as executable
# run: chmod +x target/release/fnm
# - name: install fnm as binary
# run: |
# sudo install target/release/fnm /bin
# fnm --version
# - uses: pnpm/action-setup@v2.2.4
# with:
# run_install: false
# - uses: actions/setup-node@v3
# with:
# node-version: 18.x
# cache: "pnpm"
# - name: Get pnpm store directory
# id: pnpm-cache
# run: |
# echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
# - uses: actions/cache@v3
# name: Setup pnpm cache
# with:
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
# - run: pnpm install
# - name: Generate command markdown
# run: |
# pnpm run generate-command-docs --check --binary-path=$(which fnm)
# TODO: use bnz # TODO: use bnz
# run_e2e_benchmarks: # run_e2e_benchmarks:
# runs-on: ubuntu-latest # runs-on: ubuntu-latest
# name: bench/linux # name: bench/linux
# needs: [build_static_linux_binary] # needs: [build_static_linux_binary]
# permissions: # permissions:
# contents: write # contents: write
# pull-requests: write # pull-requests: write
# steps: # steps:
# - name: install necessary shells # - name: install necessary shells
# run: sudo apt-get update && sudo apt-get install -y fish zsh bash hyperfine # run: sudo apt-get update && sudo apt-get install -y fish zsh bash hyperfine
# - uses: actions/checkout@v3 # - uses: actions/checkout@v3
# - uses: actions/download-artifact@v3 # - uses: actions/download-artifact@v3
# with: # with:
# name: fnm-linux # name: fnm-linux
# path: target/release # path: target/release
# - name: mark binary as executable # - name: mark binary as executable
# run: chmod +x target/release/fnm # run: chmod +x target/release/fnm
# - name: install fnm as binary # - name: install fnm as binary
# run: | # run: |
# sudo install target/release/fnm /bin # sudo install target/release/fnm /bin
# fnm --version # fnm --version
# - uses: pnpm/action-setup@v2.2.4 # - uses: pnpm/action-setup@v2.2.4
# with: # with:
# run_install: false # run_install: false
# - uses: actions/setup-node@v3 # - uses: actions/setup-node@v3
# with: # with:
# node-version: 18.x # node-version: 18.x
# cache: "pnpm" # cache: "pnpm"
# - name: Get pnpm store directory # - name: Get pnpm store directory
# id: pnpm-cache # id: pnpm-cache
# run: | # run: |
# echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" # echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
# - uses: actions/cache@v3 # - uses: actions/cache@v3
# name: Setup pnpm cache # name: Setup pnpm cache
# with: # with:
# path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} # path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: | # restore-keys: |
# ${{ runner.os }}-pnpm-store- # ${{ runner.os }}-pnpm-store-
# - run: pnpm install # - run: pnpm install
# - name: Run benchmarks # - name: Run benchmarks
# env: # env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SHOULD_STORE: ${{ toJson(!github.event.pull_request) }} # SHOULD_STORE: ${{ toJson(!github.event.pull_request) }}
# id: benchmark # id: benchmark
# run: | # run: |
# delimiter="$(openssl rand -hex 8)" # delimiter="$(openssl rand -hex 8)"
# echo "markdown<<${delimiter}" >> "${GITHUB_OUTPUT}" # echo "markdown<<${delimiter}" >> "${GITHUB_OUTPUT}"
# node benchmarks/run.mjs --store=$SHOULD_STORE >> "${GITHUB_OUTPUT}" # node benchmarks/run.mjs --store=$SHOULD_STORE >> "${GITHUB_OUTPUT}"
# echo "${delimiter}" >> "${GITHUB_OUTPUT}" # echo "${delimiter}" >> "${GITHUB_OUTPUT}"
# - name: Create a PR comment # - name: Create a PR comment
# if: ${{ github.event.pull_request }} # if: ${{ github.event.pull_request }}
# uses: thollander/actions-comment-pull-request@v2 # uses: thollander/actions-comment-pull-request@v2
# with: # with:
# message: | # message: |
# ## Linux Benchmarks for ${{ github.event.pull_request.head.sha }} # ## Linux Benchmarks for ${{ github.event.pull_request.head.sha }}
# ${{ steps.benchmark.outputs.markdown }} # ${{ steps.benchmark.outputs.markdown }}
# comment_tag: "benchy comment" # comment_tag: "benchy comment"
# #
# - name: Create a commit comment # - name: Create a commit comment
# if: ${{ !github.event.pull_request }} # if: ${{ !github.event.pull_request }}
# uses: peter-evans/commit-comment@v2 # uses: peter-evans/commit-comment@v2
# with: # with:
# body: | # body: |
# ## Linux Benchmarks # ## Linux Benchmarks
# ${{ steps.benchmark.outputs.markdown }} # ${{ steps.benchmark.outputs.markdown }}

Loading…
Cancel
Save