chore(deps-dev): bump vite from 7.2.4 to 7.2.6 in /webui #4
Workflow file for this run
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: ci-build | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| release-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache NDK | |
| id: cache-ndk | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/ndk_temp | |
| key: ndk-${{ runner.os }}-ndk_temp | |
| - name: Setup ndk | |
| if: steps.cache-ndk.outputs.cache-hit != 'true' | |
| run: | | |
| ndk_url=$(wget -qO- https://github.com/android/ndk/releases/latest | grep -e 'https://dl.google.com/android/repository/android-ndk-.*-linux.zip' | sed -n 's/.*<a href="\([^"]*\)".*/\1/p') | |
| wget -O ndk.zip $ndk_url -nv | |
| mkdir -p ~/ndk_temp | |
| unzip ndk.zip -d ~/ndk_temp 2>&1 > /dev/null | |
| mv ~/ndk_temp/*/* ~/ndk_temp | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: nightly | |
| targets: aarch64-linux-android | |
| components: rust-src | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt install -y gcc-multilib | |
| cargo install cargo-ndk --locked | |
| - name: Setup Webui deps | |
| run: | | |
| cd webui/ | |
| npm install | |
| - name: Build | |
| run: | | |
| export ANDROID_NDK_HOME=$(realpath ~/ndk_temp) | |
| export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME | |
| cargo xtask b | |
| - name: Prepare artifacts | |
| run: | | |
| mkdir -p output/artifact/ | |
| unzip "output/magic_mount_rs.zip" -d output/artifact/ | |
| - name: Upload release version | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: meta-mm | |
| compression-level: 9 | |
| path: output/artifact/ | |
| - name: Upload | |
| if: github.event_name == 'push' | |
| env: | |
| BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |
| CHAT_ID: ${{ secrets.CHAT_ID }} | |
| BOT_CI_SESSION: ${{ secrets.BOT_CI_SESSION }} | |
| COMMIT_MESSAGE: ${{ format('{0}', github.event.head_commit.message) }} | |
| COMMIT_URL: ${{ github.event.head_commit.url }} | |
| ANOTHER: ${{ github.event.head_commit.author.name }} | |
| run: | | |
| if [ -z "${BOT_TOKEN:-}" ] || [ -z "${CHAT_ID:-}" ] || [ -z "${BOT_CI_SESSION:-}" ]; then | |
| exit 0 | |
| fi | |
| pip3 install telethon | |
| python3 .github/bot.py |