@@ -11,32 +11,73 @@ jobs:
1111 test-suite :
1212 name : Run test suite
1313 if : github.repository == 'quarto-dev/quarto-markdown'
14- runs-on : ubuntu-latest
14+ # runs-on: ubuntu-latest
15+ # steps:
16+ # - name: Temporarily modify the rust toolchain version
17+ # run: rustup override set nightly
18+ # shell: bash
19+
20+ # - name: Output rust version for educational purposes
21+ # run: rustup --version
22+ # shell: bash
23+
24+ # - name: Checkout Repo
25+ # uses: actions/checkout@v4
26+
27+ # - name: Install Pandoc
28+ # run: |
29+ # curl -LO https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-1-amd64.deb
30+ # sudo dpkg -i pandoc-3.7.0.2-1-amd64.deb
31+ # shell: bash
32+
33+ # - name: Install tree-sitter CLI
34+ # run: |
35+ # sudo apt-get install libc6-dev
36+ # sudo apt-get install gcc-multilib
37+ # curl -LO https://github.com/tree-sitter/tree-sitter/releases/download/v0.25.8/tree-sitter-linux-x86.gz
38+ # gunzip tree-sitter-linux-x86.gz
39+ # chmod +x tree-sitter-linux-x86
40+
41+ # - name: Build
42+ # run: cargo build
43+ # shell: bash
44+
45+ # - name: Test inline tree-sitter grammar
46+ # run: |
47+ # cd crates/tree-sitter-qmd/tree-sitter-markdown-inline
48+ # ../../../tree-sitter-linux-x86 test
49+
50+ # - name: Test block tree-sitter grammar
51+ # run: |
52+ # cd crates/tree-sitter-qmd/tree-sitter-markdown
53+ # ../../../tree-sitter-linux-x86 test
54+
55+ # - name: Test Rust code
56+ # run: cargo test
57+ # shell: bash
58+ runs-on : macos-latest
1559 steps :
16- - name : Temporarily modify the rust toolchain version
17- run : rustup override set nightly
18- shell : bash
60+ - name : Set up Homebrew
61+ id : set-up-homebrew
62+ uses : Homebrew/actions/setup-homebrew@main
63+
64+ - name : Set up Rust
65+ uses : dtolnay/rust-toolchain@nightly
1966
20- - name : Output rust version for educational purposes
67+ - name : Output rust version
2168 run : rustup --version
2269 shell : bash
2370
2471 - name : Checkout Repo
2572 uses : actions/checkout@v4
2673
2774 - name : Install Pandoc
28- run : |
29- curl -LO https://github.com/jgm/pandoc/releases/download/3.7.0.2/pandoc-3.7.0.2-1-amd64.deb
30- sudo dpkg -i pandoc-3.7.0.2-1-amd64.deb
75+ run : brew install pandoc
3176 shell : bash
3277
3378 - name : Install tree-sitter CLI
34- run : |
35- sudo apt-get install libc6-dev
36- sudo apt-get install gcc-multilib
37- curl -LO https://github.com/tree-sitter/tree-sitter/releases/download/v0.25.8/tree-sitter-linux-x86.gz
38- gunzip tree-sitter-linux-x86.gz
39- chmod +x tree-sitter-linux-x86
79+ run : brew install tree-sitter
80+ shell : bash
4081
4182 - name : Build
4283 run : cargo build
@@ -45,14 +86,15 @@ jobs:
4586 - name : Test inline tree-sitter grammar
4687 run : |
4788 cd crates/tree-sitter-qmd/tree-sitter-markdown-inline
48- ../../../ tree-sitter-linux-x86 test
89+ tree-sitter test
4990
5091 - name : Test block tree-sitter grammar
5192 run : |
5293 cd crates/tree-sitter-qmd/tree-sitter-markdown
53- ../../../ tree-sitter-linux-x86 test
94+ tree-sitter test
5495
5596 - name : Test Rust code
5697 run : cargo test
5798 shell : bash
5899
100+
0 commit comments