Merge pull request #356 from waycrate/dependabot/cargo/clap-4.6.1 #1269
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| actions: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: all-features | |
| cargo_args: --workspace --release --all-features | |
| - name: default | |
| cargo_args: --workspace --release | |
| - name: minimal | |
| cargo_args: --workspace --release --no-default-features | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: archlinux:latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Build Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install wayland dependencies | |
| run: | | |
| pacman -Syu --noconfirm egl-wayland egl-gbm wayland base-devel mesa pango cairo libjxl | |
| - name: Build (${{ matrix.name }}) | |
| run: cargo build ${{ matrix.cargo_args }} |