2024-08-06 21:48:31 +08:00
|
|
|
name: Test Build Frontend
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2024-08-06 21:52:39 +08:00
|
|
|
image: oven/bun
|
2024-08-06 21:48:31 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repository
|
2024-08-06 21:55:45 +08:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install Rustup and Cargo
|
|
|
|
run: |
|
2024-08-06 21:56:52 +08:00
|
|
|
apt update
|
2024-08-06 21:59:18 +08:00
|
|
|
apt install curl -y
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
2024-08-06 22:01:52 +08:00
|
|
|
. "/root/.cargo/env"
|
2024-08-06 21:48:31 +08:00
|
|
|
|
2024-08-06 21:51:02 +08:00
|
|
|
- name: bun install
|
2024-08-06 21:48:31 +08:00
|
|
|
run: |
|
2024-08-06 21:51:02 +08:00
|
|
|
bun install
|
2024-08-06 21:48:31 +08:00
|
|
|
|
2024-08-06 21:51:02 +08:00
|
|
|
- name: bun run tauri build
|
2024-08-06 21:48:31 +08:00
|
|
|
run: |
|
2024-08-06 21:51:02 +08:00
|
|
|
NO_STRIP=true bun run tauri build
|
2024-08-06 21:48:31 +08:00
|
|
|
echo "winning ranks"
|