fix(gui): [BF-59] open external links in default browser #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build GUI | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/gui/**' | |
- 'packages/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'apps/gui/**' | |
- 'packages/**' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build-gui: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: [macos-latest, ubuntu-20.04, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: latest | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: set up cargo cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
apps/gui/src-tauri/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo- | |
- name: delete existing bundles on linux and macos | |
continue-on-error: true | |
if: matrix.platform == 'macos-latest' || matrix.platform == 'ubuntu-20.04' | |
run: | | |
rm -rf apps/gui/src-tauri/target/debug/bundle | |
- name: delete existing bundles on windows | |
continue-on-error: true | |
if: matrix.platform == 'windows-latest' | |
run: | | |
Remove-Item -Recurse -Force apps/gui/src-tauri/target/debug/bundle | |
- name: Install dependencies (ubuntu only) | |
if: matrix.platform == 'ubuntu-20.04' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf | |
- name: Build | |
run: pnpm run build --filter=gui -- --debug |