refine tray icon #87
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: Rust | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Prepare | |
| if: ${{ matrix.os == 'ubuntu-latest' }} | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --fix-missing libx11-dev libxext-dev libxft-dev libxinerama-dev libxcursor-dev libxrender-dev libxfixes-dev libpango1.0-dev libgl1-mesa-dev libglu1-mesa-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxdo-dev libxmu-dev -y | |
| - name: Install cargo-bundle | |
| if: ${{ !cancelled() && (matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest') }} | |
| run: cargo install cargo-bundle | |
| - name: Rustfmt | |
| if: ${{ !cancelled() }} | |
| run: cargo fmt -- --check | |
| - name: Clippy | |
| if: ${{ !cancelled() }} | |
| run: cargo clippy --all-features -- -D warnings | |
| - name: Build | |
| if: ${{ !cancelled() }} | |
| run: cargo build --verbose --all-features --all-targets --tests --examples | |
| - name: Test | |
| if: ${{ !cancelled() }} | |
| run: cargo test --verbose --all-features | |
| - name: Bundle (Linux .deb) | |
| if: ${{ !cancelled() && matrix.os == 'ubuntu-latest' }} | |
| run: cargo bundle --format deb | |
| - name: Bundle (macOS .app) | |
| if: ${{ !cancelled() && matrix.os == 'macos-latest' }} | |
| run: cargo bundle --format osx | |
| - name: Build installer (Windows .msi) | |
| if: ${{ !cancelled() && matrix.os == 'windows-latest' }} | |
| run: dotnet build msi/installer.wixproj | |
| - name: Abort on error | |
| if: ${{ failure() }} | |
| run: echo "Some of jobs failed" && false |