Avoid bright flash at start #635
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: CI | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| tags-ignore: | |
| - '*' | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| name: ${{ matrix.arg }} | |
| strategy: | |
| matrix: | |
| include: | |
| - { os: macos-latest, arg: --mac } | |
| - { os: ubuntu-latest, arg: --linux } | |
| - { os: windows-latest, arg: --windows } | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Rust setup | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Node.js setup | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: 20 | |
| - name: 'Install dependencies (Linux)' | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt update && sudo apt-get install -y libwayland-dev pkg-config | |
| - run: npm install | |
| - run: npm run napi | |
| - run: npm run build:web | |
| - run: npm run electron-builder -- ${{ matrix.arg }} --publish never | |
| - run: npm run generate-update-json |