Skip to content

fix(deps): update rust crate mdns-sd to v0.11.5 #297

fix(deps): update rust crate mdns-sd to v0.11.5

fix(deps): update rust crate mdns-sd to v0.11.5 #297

Workflow file for this run

name: "CI Build"
on:
pull_request:
branches:
- main
concurrency:
# On main, we want all builds to complete even if merging happens faster to make it easier to discover at which point something broke.
group: ${{ github.ref == 'refs/heads/main' && format('ci-main-{0}', github.sha) || format('ci-{0}', github.ref) }}
jobs:
build-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "macos-latest" # for Arm based macs (M1 and above).
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-latest"
args: ""
- platform: "windows-latest"
args: ""
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install rust stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin,wasm32-unknown-unknown' || 'wasm32-unknown-unknown' }}
- name: Install dependencies (ubuntu only)
if: contains(matrix.platform, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf python3-pip
sudo python3 -m pip install codespell
- name: Cached install cargo-make (ubuntu only)
if: contains(matrix.platform, 'ubuntu')
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
with:
tool: cargo-make
locked: true
- name: Run codespell (ubuntu only)
if: contains(matrix.platform, 'ubuntu')
run: |
cargo make codespell
- name: Run rustfmt and fail if any warnings (macos only)
if: contains(matrix.platform, 'macos')
run: |
cargo fmt -- --check
cd src-tauri
cargo fmt -- --check
- name: Run clippy and fail if any warnings (macos only)
if: contains(matrix.platform, 'macos')
run: |
cargo clippy -- -D warnings
cd src-tauri
cargo clippy -- -D warnings
- name: Install frontend dependencies
run: |
rustup target add wasm32-unknown-unknown
- name: Run tests
run: |
cargo test
- name: Cached install cargo-cyclonedx
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
with:
tool: cargo-cyclonedx
locked: true
- name: Generate SBOM
run: |
cargo cyclonedx --all --format json
- name: Upload sbom artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: "sbom-${{matrix.platform}}${{matrix.args}}"
path: "**/*.cdx.json"
- name: Cached install trunk
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
with:
tool: trunk
locked: true
- name: Cached install tauri-cli
uses: taiki-e/cache-cargo-install-action@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # v2.0.1
with:
tool: tauri-cli
locked: true
- name: Build using tauri action
uses: tauri-apps/tauri-action@4ec5841d83495da72c665daa556e6f231b89ae06 # v0.5.14
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
tauriScript: cargo --locked auditable tauri
- name: Upload build artifacts
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: "bundles-${{matrix.platform}}${{matrix.args}}"
path: target/release/bundle