feat(record): 实现软件内录功能 #23
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: Continuous Integration | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| check-and-build: | |
| name: Check and Build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [macos-latest, ubuntu-latest, windows-latest] | |
| defaults: | |
| run: | |
| shell: bash | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run checks | |
| run: | | |
| pnpm run format:check & | |
| pnpm run lint & | |
| pnpm run typecheck & | |
| for job in $(jobs -p); do | |
| wait $job || exit 1 | |
| done | |
| - name: Build for Windows | |
| if: matrix.os == 'windows-latest' | |
| run: pnpm run build:win | |
| - name: Build for macOS | |
| if: matrix.os == 'macos-latest' | |
| run: pnpm run build:mac | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build for Linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo snap install snapcraft --classic | |
| pnpm run build:linux | |
| - name: Upload build artifacts | |
| if: github.ref == 'refs/heads/master' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-build | |
| retention-days: 7 | |
| path: | | |
| dist/*.zip | |
| dist/*.AppImage | |
| dist/*.snap | |
| dist/*.deb | |
| dist/*.dmg | |
| if-no-files-found: error |