fix: cannot load font #434
This file contains 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: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build Binary | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install Deps | |
run: sudo apt install -y libxkbcommon-dev libpango1.0-dev | |
- name: Run fmt check | |
run: cargo fmt --all -- --check | |
- name: Run clippy check | |
run: cargo clippy -- -D warnings | |
- name: Run tests | |
run: cargo test --verbose | |
release: | |
permissions: | |
contents: write | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Install Deps | |
run: sudo apt install -y libxkbcommon-dev libpango1.0-dev libwayland-dev | |
- name: Publish to crate | |
run: | | |
cargo publish -p iced_layershell_macros --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p iced_sessionlock_macros --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p waycrate_xkbkeycode --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p layershellev --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p sessionlockev --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p iced_layershell --token ${{ secrets.CRATES_TOKEN }} | |
cargo publish -p iced_sessionlock --token ${{ secrets.CRATES_TOKEN }} | |
- uses: softprops/action-gh-release@v2 | |
with: | |
draft: true |