Skip to content

更新 v2026.3.31-nightly 版本 #13

更新 v2026.3.31-nightly 版本

更新 v2026.3.31-nightly 版本 #13

Workflow file for this run

name: "Nightly"
on:
workflow_dispatch:
push:
branches:
- nightly
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: "windows-latest"
target: "x86_64-pc-windows-msvc"
- platform: "windows-latest"
target: "aarch64-pc-windows-msvc"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup volta
uses: volta-cli/action@v4.2.1
with:
node-version: 24
- name: install pnpm
run: volta install pnpm
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
- name: install aarch64 target
if: matrix.target == 'aarch64-pc-windows-msvc'
run: rustup target add aarch64-pc-windows-msvc
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: pnpm install # change this to npm or pnpm depending on which one you use.
- name: Sync with Crowdin
run: pnpm crowdin:upload && pnpm crowdin:download
- uses: actions-js/push@master
with:
branch: nightly
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: build app
run: pnpm tauri:build --target ${{ matrix.target }}
- name: upload artifact
uses: actions/upload-artifact@v7
with:
name: smtc2web-${{ matrix.target }}-${{ github.sha }}
path: src-tauri/target/${{ matrix.target }}/release/bundle
fail-on-missing: true