Use &str for codespan Files content #12
Workflow file for this run
This file contains 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: 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 |