Skip to content

Use &str for codespan Files content #14

Use &str for codespan Files content

Use &str for codespan Files content #14

Workflow file for this run

name: Example
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run example
run: |
cargo run -F inline-source-map --example source_map_creation -- LICENSE LICENSE.map
echo "### Input
\`\`\`
$(cat LICENSE)
\`\`\`
### Output
\`\`\`
$(cat LICENSE.map)
\`\`\`
> ctrl-c the above output and paste into https://evanw.github.io/source-map-visualization
" >> $GITHUB_STEP_SUMMARY