Skip to content

Commit 0aa4c83

Browse files
authored
build
1 parent da15198 commit 0aa4c83

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Run Audioling
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Install Bun
18+
shell: powershell
19+
run: |
20+
irm https://bun.sh/install | iex
21+
echo "$HOME/.bun/bin" | Out-File -Append -Encoding utf8 $env:GITHUB_PATH
22+
23+
- name: Install Rust and Tauri Dependencies
24+
shell: powershell
25+
run: |
26+
iwr -useb https://win.rustup.rs | iex
27+
rustup update
28+
rustup default stable
29+
rustup target add x86_64-pc-windows-msvc
30+
31+
# Install Tauri CLI
32+
cargo install tauri-cli
33+
34+
# Install Windows build dependencies
35+
choco install -y visualstudio2022buildtools visualstudio2022-workload-vctools
36+
37+
- name: Install Project Dependencies
38+
run: bun install
39+
40+
- name: Build Packages
41+
run: bun run build:packages
42+
43+
- name: Run Web & Server Apps
44+
shell: powershell
45+
run: |
46+
Start-Process -NoNewWindow -FilePath "bun" -ArgumentList "run dev" -WorkingDirectory "./apps/web"
47+
Start-Process -NoNewWindow -FilePath "bun" -ArgumentList "run dev" -WorkingDirectory "./apps/server"
48+

0 commit comments

Comments
 (0)