|
| 1 | +name: code-to-tree |
| 2 | +run-name: code-to-tree |
| 3 | +on: [push] |
| 4 | +jobs: |
| 5 | + code-to-tree-win2025: |
| 6 | + if: contains(github.event.head_commit.message, 'NO_GH_CI') == false |
| 7 | + runs-on: windows-2025 |
| 8 | + steps: |
| 9 | + - uses: actions/checkout@v4 |
| 10 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter |
| 11 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-c |
| 12 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-cpp |
| 13 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-rust |
| 14 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-go |
| 15 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-python |
| 16 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-java |
| 17 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-ruby |
| 18 | + - shell: bash |
| 19 | + run: cd tree-sitter && patch -i ts1.patch && OS=1 make install |
| 20 | + - shell: bash |
| 21 | + run: cd tree-sitter-c && OS=1 make install |
| 22 | + - shell: bash |
| 23 | + run: cd tree-sitter-cpp && OS=1 make install |
| 24 | + - shell: bash |
| 25 | + run: cd tree-sitter-rust && OS=1 make install |
| 26 | + - shell: bash |
| 27 | + run: cd tree-sitter-go && OS=1 make install |
| 28 | + - shell: bash |
| 29 | + run: cd tree-sitter-python && OS=1 make install |
| 30 | + - shell: bash |
| 31 | + run: cd tree-sitter-java && OS=1 make install |
| 32 | + - shell: bash |
| 33 | + run: cd tree-sitter-ruby && OS=1 make install |
| 34 | + - shell: bash |
| 35 | + run: git clone --depth=1 https://github.com/micl2e2/mcpc |
| 36 | + - shell: bash |
| 37 | + run: cd mcpc && make install |
| 38 | + - shell: bash |
| 39 | + run: CFLAGS="-I \"C:\Program Files\Git\usr\local\include\" -L \"C:\Program Files\Git\usr\local\lib\"" make |
| 40 | + - run: dir |
| 41 | + - run: ldd code-to-tree.exe |
| 42 | + - uses: actions/upload-artifact@v4 |
| 43 | + with: |
| 44 | + name: code-to-tree.exe |
| 45 | + path: code-to-tree.exe |
| 46 | + code-to-tree-macos13: |
| 47 | + if: contains(github.event.head_commit.message, 'NO_GH_CI') == false |
| 48 | + runs-on: macos-13 |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@v4 |
| 51 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter |
| 52 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-c |
| 53 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-cpp |
| 54 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-rust |
| 55 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-go |
| 56 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-python |
| 57 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-java |
| 58 | + - run: git clone --depth=1 https://github.com/tree-sitter/tree-sitter-ruby |
| 59 | + - run: cd tree-sitter && make install |
| 60 | + - run: cd tree-sitter-c && make install |
| 61 | + - run: cd tree-sitter-cpp && make install |
| 62 | + - run: cd tree-sitter-rust && make install |
| 63 | + - run: cd tree-sitter-go && make install |
| 64 | + - run: cd tree-sitter-python && make install |
| 65 | + - run: cd tree-sitter-java && make install |
| 66 | + - run: cd tree-sitter-ruby && make install |
| 67 | + - run: git clone --depth=1 https://github.com/micl2e2/mcpc |
| 68 | + - run: cd mcpc && make install |
| 69 | + - run: make |
| 70 | + - run: ls -l |
| 71 | + - run: otool -L code-to-tree |
| 72 | + - uses: actions/upload-artifact@v4 |
| 73 | + with: |
| 74 | + name: code-to-tree |
| 75 | + path: code-to-tree |
0 commit comments