diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..597091c --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build Windows + +on: + push: + branches: + - main + - dev + +jobs: + build-windows: + runs-on: windows + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Install dependencies (root) + run: npm install + + - name: Install dependencies (cinny) + working-directory: ./cinny + run: npm install + + - name: Build Tauri app + run: npm run tauri build + + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: windows-installer + path: | + src-tauri/target/release/bundle/msi/*.msi + src-tauri/target/release/bundle/nsis/*-setup.exe