增加 Rust 混合编译工程模板
#27
This file contains hidden or 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: test build | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 7 | |
| matrix: | |
| python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] | |
| cmake-version: ["3.7.2"] | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Get submodules | |
| run: | | |
| git submodule update --init --recursive | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v1 | |
| with: | |
| version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Test build | |
| run: | | |
| cd examples/demo | |
| python project.py build | |
| python project.py rebuild | |
| ls -al build/demo | awk '{print "program file size: " $5 "B"}' | |
| python project.py run | |
| python project.py clean | |
| python project.py distclean | |
| python project.py build --release | |
| ls -al build/demo | awk '{print "program file size: " $5 "B"}' | |
| python project.py distclean |