fix: auto-launch web UI when double-clicked with no arguments #69
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: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| name: Test (default features) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo- | |
| - name: cargo test | |
| run: cargo test | |
| - name: ratio check | |
| if: ${{ hashFiles('scripts/ratio_check.sh') != '' }} | |
| run: bash scripts/ratio_check.sh | |
| feature-matrix: | |
| name: Feature matrix | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| features: | |
| - "" | |
| - "sqlite-log" | |
| - "self-improving" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust stable | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-feat-${{ matrix.features }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo-feat-${{ matrix.features }}- | |
| - name: cargo check (features=${{ matrix.features }}) | |
| run: | | |
| if [ -z "${{ matrix.features }}" ]; then | |
| cargo check --no-default-features | |
| else | |
| cargo check --features "${{ matrix.features }}" --no-default-features | |
| fi |