Skip to content

mod

mod #4

Workflow file for this run

name: "Verify"
on:
push:
branches: ["master"]
jobs:
windows:
strategy:
fail-fast: false
matrix:
lang: [zh_en, zh_ja, ja_zh]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install dependencies
uses: ilammy/msvc-dev-cmd@v1
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install frontend dependencies
run: pnpm install
- name: Install deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Confirm language
env:
MATRIX_LANG: ${{ matrix.lang }}
run: deno run -A script/lang.ts
- name: Build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Built
env:
MATRIX_LANG: ${{ matrix.lang }}
TRAN_PLATFORM: "windows"
run: deno run -A script/built.ts
linux:
strategy:
fail-fast: false
matrix:
lang: [zh_en, zh_ja, ja_zh]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install dependencies (ubuntu only)
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.1 libxdo-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install frontend dependencies
run: pnpm install
- name: Install deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Confirm language
env:
MATRIX_LANG: ${{ matrix.lang }}
run: deno run -A script/lang.ts
- name: Build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Built
env:
MATRIX_LANG: ${{ matrix.lang }}
TRAN_PLATFORM: "linux"
run: deno run -A script/built.ts
macos:
strategy:
fail-fast: false
matrix:
lang: [zh_en, zh_ja, ja_zh]
arch: [aarch64, x86_64]
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@nightly
- name: Install toolchains
env:
MACOS_ARCH: ${{ matrix.arch }}
run: |
rustup target add "$MACOS_ARCH-apple-darwin"
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install frontend dependencies
run: pnpm install
- name: Install deno
uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Confirm language
env:
MATRIX_LANG: ${{ matrix.lang }}
run: deno run -A script/lang.ts
- name: Build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: --target ${{ matrix.arch }}-apple-darwin"
- name: Built
env:
MATRIX_LANG: ${{ matrix.lang }}
MATRIX_TARGET: /${{ matrix.arch }}-apple-darwin
TRAN_PLATFORM: "macos"
run: deno run -A script/built.ts
fresh:
runs-on: ubuntu-latest
steps:
- name: Fresh jsdelivr cdn
run: curl https://purge.jsdelivr.net/gh/Borber/tran/package.json