|
1 | | -name: Build |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: ["*"] |
6 | | - pull_request: |
7 | | - branches: ["*"] |
8 | | - |
9 | | -permissions: |
10 | | - contents: read |
11 | | - |
12 | | -jobs: |
13 | | - build: |
14 | | - strategy: |
15 | | - fail-fast: false |
16 | | - matrix: |
17 | | - include: |
18 | | - - platform: windows-latest |
19 | | - args: '' |
20 | | - - platform: ubuntu-22.04 |
21 | | - args: '' |
22 | | - - platform: macos-latest |
23 | | - args: '--target aarch64-apple-darwin' |
24 | | - - platform: macos-latest |
25 | | - args: '--target x86_64-apple-darwin' |
26 | | - |
27 | | - runs-on: ${{ matrix.platform }} |
28 | | - env: |
29 | | - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true |
30 | | - |
31 | | - steps: |
32 | | - - uses: actions/checkout@v4 |
33 | | - |
34 | | - - name: Install system dependencies (Linux) |
35 | | - if: matrix.platform == 'ubuntu-22.04' |
36 | | - run: | |
37 | | - sudo apt-get update |
38 | | - sudo apt-get install -y \ |
39 | | - libwebkit2gtk-4.1-dev \ |
40 | | - libappindicator3-dev \ |
41 | | - librsvg2-dev \ |
42 | | - patchelf |
43 | | -
|
44 | | - - name: Install Rust stable |
45 | | - uses: dtolnay/rust-toolchain@stable |
46 | | - with: |
47 | | - targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} |
48 | | - |
49 | | - - name: Rust cache |
50 | | - uses: swatinem/rust-cache@v2 |
51 | | - with: |
52 | | - workspaces: './src-tauri -> target' |
53 | | - |
54 | | - - name: Setup Bun |
55 | | - uses: oven-sh/setup-bun@v2 |
56 | | - with: |
57 | | - bun-version: latest |
58 | | - |
59 | | - - name: Install frontend dependencies |
60 | | - run: bun install |
61 | | - |
62 | | - - name: Build with Tauri |
63 | | - uses: tauri-apps/tauri-action@v0 |
64 | | - env: |
65 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
66 | | - with: |
67 | | - args: ${{ matrix.args }} |
68 | | - |
69 | | - - name: Upload artifacts |
70 | | - uses: actions/upload-artifact@v4 |
71 | | - with: |
72 | | - name: branchcode-${{ matrix.platform }}${{ matrix.args && format('-{0}', matrix.args) || '' }} |
73 | | - path: | |
74 | | - src-tauri/target/release/bundle/**/*.exe |
75 | | - src-tauri/target/release/bundle/**/*.msi |
76 | | - src-tauri/target/release/bundle/**/*.AppImage |
77 | | - src-tauri/target/release/bundle/**/*.deb |
78 | | - src-tauri/target/release/bundle/**/*.app |
79 | | - src-tauri/target/release/bundle/**/*.dmg |
80 | | - if-no-files-found: warn |
81 | | - retention-days: 30 |
| 1 | +name: Build |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: ["*"] |
| 6 | + pull_request: |
| 7 | + branches: ["*"] |
| 8 | + |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +jobs: |
| 13 | + build: |
| 14 | + strategy: |
| 15 | + fail-fast: false |
| 16 | + matrix: |
| 17 | + include: |
| 18 | + - platform: windows-latest |
| 19 | + args: '' |
| 20 | + - platform: ubuntu-22.04 |
| 21 | + args: '' |
| 22 | + - platform: macos-latest |
| 23 | + args: '--target aarch64-apple-darwin' |
| 24 | + - platform: macos-latest |
| 25 | + args: '--target x86_64-apple-darwin' |
| 26 | + |
| 27 | + runs-on: ${{ matrix.platform }} |
| 28 | + env: |
| 29 | + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true |
| 30 | + |
| 31 | + steps: |
| 32 | + - uses: actions/checkout@v4 |
| 33 | + |
| 34 | + - name: Install system dependencies (Linux) |
| 35 | + if: matrix.platform == 'ubuntu-22.04' |
| 36 | + run: | |
| 37 | + sudo apt-get update |
| 38 | + sudo apt-get install -y \ |
| 39 | + libwebkit2gtk-4.1-dev \ |
| 40 | + libappindicator3-dev \ |
| 41 | + librsvg2-dev \ |
| 42 | + patchelf |
| 43 | +
|
| 44 | + - name: Install Rust stable |
| 45 | + uses: dtolnay/rust-toolchain@stable |
| 46 | + with: |
| 47 | + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} |
| 48 | + |
| 49 | + - name: Rust cache |
| 50 | + uses: swatinem/rust-cache@v2 |
| 51 | + with: |
| 52 | + workspaces: './src-tauri -> target' |
| 53 | + |
| 54 | + - name: Setup Bun |
| 55 | + uses: oven-sh/setup-bun@v2 |
| 56 | + with: |
| 57 | + bun-version: latest |
| 58 | + |
| 59 | + - name: Install frontend dependencies |
| 60 | + run: bun install |
| 61 | + |
| 62 | + - name: Build with Tauri |
| 63 | + uses: tauri-apps/tauri-action@v0 |
| 64 | + env: |
| 65 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 66 | + with: |
| 67 | + args: ${{ matrix.args }} |
| 68 | + |
| 69 | + - name: Upload artifacts |
| 70 | + uses: actions/upload-artifact@v4 |
| 71 | + with: |
| 72 | + name: branchcode-${{ matrix.platform }}${{ matrix.args && format('-{0}', matrix.args) || '' }} |
| 73 | + path: | |
| 74 | + src-tauri/target/release/bundle/**/*.exe |
| 75 | + src-tauri/target/release/bundle/**/*.msi |
| 76 | + src-tauri/target/release/bundle/**/*.AppImage |
| 77 | + src-tauri/target/release/bundle/**/*.deb |
| 78 | + src-tauri/target/release/bundle/**/*.app |
| 79 | + src-tauri/target/release/bundle/**/*.dmg |
| 80 | + if-no-files-found: warn |
| 81 | + retention-days: 30 |
0 commit comments