|
7 | 7 | fail-fast: false
|
8 | 8 | matrix:
|
9 | 9 | include:
|
10 |
| - # - platform: 'macos-latest' # for Arm based macs (M1 and above). |
11 |
| - # args: '--verbose --target aarch64-apple-darwin' |
12 |
| - # platform-name: 'Macos-M1' |
13 |
| - # - platform: 'macos-latest' # for Intel based macs. |
14 |
| - # args: '--verbose --target x86_64-apple-darwin' |
15 |
| - # platform-name: 'Macos-Intel' |
16 | 10 | - platform: 'macos-latest' # for Univrsal based macs.
|
17 |
| - args: '--verbose --target universal-apple-darwin' |
| 11 | + args: '--verbose --target universal-apple-darwin --features aws-sdk' |
18 | 12 | platform-name: 'Macos-Universal'
|
19 | 13 | - platform: 'ubuntu-latest' # for Tauri v1 you could replace this with ubuntu-20.04.
|
20 |
| - args: '--verbose' |
| 14 | + args: '--verbose --features aws-sdk' |
21 | 15 | platform-name: 'Linux'
|
22 | 16 | - platform: 'windows-latest'
|
23 |
| - args: '--verbose' |
| 17 | + args: '--verbose --features aws-sdk' |
| 18 | + platform-name: 'Windows' |
| 19 | + runs-on: ${{ matrix.platform }} |
| 20 | + steps: |
| 21 | + - name: Set git to use LF |
| 22 | + run: | |
| 23 | + git config --global core.autocrlf false |
| 24 | + git config --global core.eol lf |
| 25 | + - uses: actions/checkout@v4 |
| 26 | + - uses: bluwy/substitute-string-action@v3 |
| 27 | + id: sub |
| 28 | + with: |
| 29 | + _input-file: 'src-tauri/src/main.rs' |
| 30 | + _output-file: 'src-tauri/src/main.rs' |
| 31 | + _format-key: '%%key%%' |
| 32 | + PROFILE: 'release' |
| 33 | + WOMBAT_API_URL: ${{ secrets.WOMBAT_API_URL }} |
| 34 | + WOMBAT_API_USER: ${{ secrets.WOMBAT_API_USER }} |
| 35 | + WOMBAT_API_PASSWORD: ${{ secrets.WOMBAT_API_PASSWORD }} |
| 36 | + - name: Install pnpm |
| 37 | + uses: pnpm/action-setup@v4 |
| 38 | + with: |
| 39 | + version: 9 |
| 40 | + - name: setup node |
| 41 | + uses: actions/setup-node@v4 |
| 42 | + with: |
| 43 | + node-version: 22 |
| 44 | + cache: 'pnpm' |
| 45 | + - name: install Rust |
| 46 | + uses: dtolnay/rust-toolchain@stable |
| 47 | + with: |
| 48 | + # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds. |
| 49 | + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} |
| 50 | + - name: install dependencies (ubuntu only) |
| 51 | + if: matrix.platform == 'ubuntu-latest' |
| 52 | + run: | |
| 53 | + sudo apt-get update |
| 54 | + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf |
| 55 | + - name: Rust cache |
| 56 | + uses: swatinem/rust-cache@v2 |
| 57 | + with: |
| 58 | + workspaces: './src-tauri -> target' |
| 59 | + - name: install frontend dependencies |
| 60 | + run: pnpm install --frozen-lockfile |
| 61 | + - name: lint |
| 62 | + run: | |
| 63 | + pnpm lint |
| 64 | + pnpm check |
| 65 | + - uses: tauri-apps/tauri-action@v0 |
| 66 | + env: |
| 67 | + TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} |
| 68 | + TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} |
| 69 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 70 | + with: |
| 71 | + args: ${{ matrix.args }} |
| 72 | + - name: Archive executable |
| 73 | + uses: actions/upload-artifact@v4 |
| 74 | + with: |
| 75 | + name: ${{matrix.platform-name}}-${{ matrix.platform }}-${{ github.sha }} |
| 76 | + path: | |
| 77 | + src-tauri/target/release/bundle |
| 78 | + src-tauri/target/release/**/Wombat* |
| 79 | + src-tauri/target/universal-apple-darwin/**/release/**/Wombat* |
| 80 | + test-tauri-arh: |
| 81 | + strategy: |
| 82 | + fail-fast: false |
| 83 | + matrix: |
| 84 | + include: |
| 85 | + - platform: 'macos-latest' # for Univrsal based macs. |
| 86 | + args: '--verbose --target universal-apple-darwin --features arh' |
| 87 | + platform-name: 'Macos-Universal' |
| 88 | + - platform: 'ubuntu-latest' # for Tauri v1 you could replace this with ubuntu-20.04. |
| 89 | + args: '--verbose --features arh' |
| 90 | + platform-name: 'Linux' |
| 91 | + - platform: 'windows-latest' |
| 92 | + args: '--verbose --features arh' |
24 | 93 | platform-name: 'Windows'
|
25 | 94 | runs-on: ${{ matrix.platform }}
|
26 | 95 | steps:
|
|
0 commit comments