2022-05-03 15:17:26 +00:00
|
|
|
name: "Build pull request"
|
|
|
|
on:
|
2022-05-13 10:57:58 +00:00
|
|
|
#pull_request:
|
|
|
|
#types: ['opened', 'synchronize']
|
2022-05-03 15:17:26 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-tauri:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-09-16 15:19:53 +00:00
|
|
|
platform: [macos-latest, ubuntu-20.04, windows-latest]
|
2022-05-03 15:17:26 +00:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2024-10-03 07:09:47 +00:00
|
|
|
uses: actions/checkout@v4.2.0
|
2022-05-03 15:17:26 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Setup node
|
2024-10-03 07:09:16 +00:00
|
|
|
uses: actions/setup-node@v4.0.4
|
2022-05-03 15:17:26 +00:00
|
|
|
with:
|
2024-05-14 04:12:26 +00:00
|
|
|
node-version: 20.12.2
|
2022-11-07 09:59:43 +00:00
|
|
|
cache: 'npm'
|
2022-05-03 15:17:26 +00:00
|
|
|
- name: Install Rust stable
|
|
|
|
uses: actions-rs/toolchain@v1.0.7
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
2022-05-16 11:10:09 +00:00
|
|
|
- name: Install dependencies (ubuntu only)
|
2022-09-16 15:19:53 +00:00
|
|
|
if: matrix.platform == 'ubuntu-20.04'
|
2022-05-03 15:17:26 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2022-05-16 11:10:09 +00:00
|
|
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
2022-05-03 15:17:26 +00:00
|
|
|
- name: Install cinny dependencies
|
|
|
|
run: cd cinny && npm ci
|
|
|
|
- name: Install tauri dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Build desktop app with Tauri
|
2024-10-03 07:08:57 +00:00
|
|
|
uses: tauri-apps/tauri-action@v0.5.14
|
2022-05-03 15:17:26 +00:00
|
|
|
env:
|
2022-05-04 03:40:28 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|