utils: enable debug draw extension before import #17
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: Build and Test | |
| on: | |
| push: | |
| paths: | |
| - "native/**" | |
| - "python/**" | |
| - "pixi.toml" | |
| - "pixi.lock" | |
| - "scripts/build.sh" | |
| - ".github/actions/**" | |
| - ".github/workflows/build.yml" | |
| pull_request: | |
| paths: | |
| - "native/**" | |
| - "python/**" | |
| - "pixi.toml" | |
| - "pixi.lock" | |
| - "scripts/build.sh" | |
| - ".github/actions/**" | |
| - ".github/workflows/build.yml" | |
| jobs: | |
| build: | |
| name: ${{ matrix.build_type }}_amd64_linux | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - build_type: Debug | |
| pixi_task: test-native-debug | |
| - build_type: Release | |
| pixi_task: test-native-release | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Free disk space | |
| uses: ./.github/actions/free-disk-space | |
| - name: Set up Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.3 | |
| with: | |
| pixi-version: v0.67.0 | |
| cache: true | |
| frozen: true | |
| activate-environment: true | |
| - name: Cache BrickSim artifacts | |
| uses: ./.github/actions/cache-bricksim-artifacts | |
| - name: Build and test (${{ matrix.build_type }}) | |
| run: pixi run ${{ matrix.pixi_task }} | |
| - name: Upload native extension artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: native-${{ matrix.build_type }} | |
| path: python/bricksim/core.*.so |