feat(deps): adopt to changes of if_addrs #25
Workflow file for this run
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: "Publish release assets" | |
# This will trigger the action on each tag matching 'mdns-browser-v*' | |
on: | |
push: | |
tags: | |
- "mdns-browser-v*" | |
jobs: | |
publish-tauri: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-20.04, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Run rustfmt and fail if any warnings | |
run: | | |
cargo fmt -- --check | |
cd src-tauri | |
cargo fmt -- --check | |
- name: Run clippy and fail if any warnings | |
run: | | |
cargo clippy -- -D warnings | |
cd src-tauri | |
cargo clippy -- -D warnings | |
- name: install frontend dependencies | |
run: | | |
rustup target add wasm32-unknown-unknown | |
- name: cached install trunk | |
uses: taiki-e/cache-cargo-install-action@v1.3.0 | |
with: | |
tool: trunk | |
locked: true | |
- name: cached install tauri-cli | |
uses: taiki-e/cache-cargo-install-action@v1.3.0 | |
with: | |
tool: tauri-cli | |
locked: true | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} | |
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} | |
with: | |
tagName: mdns-browser-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version | |
releaseName: "mDNS-Browser Release v__VERSION__" | |
releaseBody: "See the assets to download this version and install." | |
releaseDraft: false | |
prerelease: false |