add break scaffold function under edit mode #29
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 | |
| # run the workflow on push to master branch or pull request to master branch | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ windows-latest, ubuntu-latest, macos-latest ] | |
| target_arch: [ x86_64, arm64 ] | |
| exclude: | |
| - os: windows-latest | |
| target_arch: arm64 | |
| - os: ubuntu-latest | |
| target_arch: arm64 | |
| include: | |
| - os: macos-latest | |
| target_arch: x86_64 | |
| runs-on: macos-15-intel | |
| - os: macos-latest | |
| target_arch: arm64 | |
| runs-on: macos-latest | |
| runs-on: ${{ matrix.runs-on || matrix.os }} | |
| steps: | |
| - name: Check runner OS | |
| run: echo "Runner OS is ${{ runner.os }}" | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Install NSIS on Windows | |
| if: runner.os == 'Windows' | |
| shell: powershell | |
| run: | | |
| choco install nsis -y --no-progress | |
| - name: install GL and x11 for Linux | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgl1-mesa-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev wayland-protocols libwayland-dev libwayland-bin | |
| - name: Run install script on Windows | |
| if: runner.os == 'Windows' | |
| shell: cmd | |
| run: | | |
| install.cmake.bat | |
| - name: Run install script on Linux | |
| if: runner.os == 'Linux' | |
| run: | | |
| chmod +x ./install.cmake.sh | |
| ./install.cmake.sh | |
| - name: Run install script on MacOS x86_64 | |
| if: runner.os == 'MacOS' && matrix.target_arch == 'x86_64' | |
| run: | | |
| chmod +x ./install.cmake.sh | |
| ./install.cmake.sh --force-x86 | |
| - name: Run install script on MacOS arm64 | |
| if: runner.os == 'MacOS' && matrix.target_arch == 'arm64' | |
| run: | | |
| chmod +x ./install.cmake.sh | |
| ./install.cmake.sh | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "${{ matrix.os }}-${{ matrix.target_arch }}-packages" | |
| path: | | |
| build_cmake/*.deb | |
| build_cmake/*.dmg | |
| build_cmake/*.exe | |
| build_cmake/*.zip | |
| build_cmake/*.msi | |