Skip to content

Commit

Permalink
chore: add build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chroxify committed Sep 15, 2024
1 parent 8127d05 commit 955ed7f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,21 @@ jobs:
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
rust_targets: 'x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Linux
args: ''
rust_targets: ''

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup node
uses: actions/setup-node@v4
with:
Expand All @@ -38,6 +47,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: add Rust targets
if: matrix.rust_targets != ''
run: rustup target add ${{ matrix.rust_targets }}

- name: install frontend dependencies
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/test-build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,20 @@ jobs:
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
rust_targets: 'x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Linux
args: ''
rust_targets: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup node
uses: actions/setup-node@v4
with:
Expand All @@ -32,6 +41,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: add Rust targets
if: matrix.rust_targets != ''
run: rustup target add ${{ matrix.rust_targets }}

- name: install frontend dependencies
Expand All @@ -40,6 +50,8 @@ jobs:
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
projectPath: apps/desktop
args: ${{ matrix.args }}
Binary file modified apps/homepage/static/landing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 955ed7f

Please sign in to comment.