Skip to content

chore(deps): bump the webui-compatible group across 1 directory with 7 updates #1898

chore(deps): bump the webui-compatible group across 1 directory with 7 updates

chore(deps): bump the webui-compatible group across 1 directory with 7 updates #1898

Workflow file for this run

# SPDX-License-Identifier: GPL-3.0-only
name: Build Hybrid Mount
on:
push:
branches: ["dev"]
paths:
- "src/**"
- "Cargo.*"
- ".cargo/**"
- "module/**"
- "webui/**"
- "xtask/**"
- "tools/notify/**"
- ".github/workflows/build.yml"
pull_request:
branches: ["dev"]
paths:
- "src/**"
- "Cargo.*"
- ".cargo/**"
- "module/**"
- "webui/**"
- "xtask/**"
- "tools/notify/**"
- ".github/workflows/build.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: read
jobs:
build:
name: Build package
runs-on: ubuntu-latest
timeout-minutes: 60
container:
image: ghcr.io/hybrid-mount/meta-hybrid_mount-ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
defaults:
run:
shell: bash
steps:
- name: Checkout Code
uses: actions/checkout@v7
with:
fetch-depth: 0
filter: "tree:0"
- name: Trust checkout directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
cache-on-failure: true
- name: Build package
run: |
set -euo pipefail
rm -rf output
cargo xtask build --ci
ZIP_PATH="$(find output -maxdepth 1 -type f -name '*.zip' | sort | head -n 1)"
test -n "$ZIP_PATH"
ZIP_FILENAME="$(basename "$ZIP_PATH")"
ARTIFACT_NAME="${ZIP_FILENAME%.*}"
echo "ARTIFACT_ZIP=$ZIP_PATH" >> "$GITHUB_ENV"
echo "ARTIFACT_NAME=$ARTIFACT_NAME" >> "$GITHUB_ENV"
- name: Upload package artifact
uses: actions/upload-artifact@v7
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_ZIP }}
compression-level: 0
if-no-files-found: error
- name: Notify Telegram
if: github.event_name != 'pull_request'
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
set -euo pipefail
rm -rf notify-output
mkdir notify-output
cp "$ARTIFACT_ZIP" notify-output/
cargo xtask notify \
--output notify-output \
--label "日常耕作 🌱 (Daily Tilling) - ${{ github.ref_name }}" \
--topic-id 37