Add consume()
to StringBuilder
and Buffer
to take ownership of the internal buffer instead of copying it.
#190
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: tests | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
test: | |
name: with ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# os: ["ubuntu-latest", "macos-14"] # mac tests just hang for some reason? | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install magic | |
run: | | |
curl -ssL https://magic.modular.com | bash | |
- name: Run tests | |
run: | | |
source $HOME/.bash_profile | |
magic run tests | |
magic run benchmarks |