Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
krabiworld committed Jan 9, 2025
2 parents 6b51d3f + 34a60c6 commit a14825f
Showing 1 changed file with 18 additions and 31 deletions.
49 changes: 18 additions & 31 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,47 @@ on:
branches:
- main

permissions:
contents: write

jobs:
publish-tauri:
permissions:
contents: write
build:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
os: [ 'macos-latest', 'ubuntu-22.04', 'windows-latest' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
- name: Install dependencies (ubuntu only)
if: matrix.os == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: setup node
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm' # Set this to npm, yarn or pnpm.
cache: 'npm'
cache-dependency-path: ./package.json

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightly
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Rust cache
- name: Rust Cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'

- name: install frontend dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: npm install # change this to npm or pnpm depending on which one you use.
- name: Install Frontend Dependencies
run: npm install

- uses: tauri-apps/tauri-action@v0.5.16
- name: Build Desktop
uses: tauri-apps/tauri-action@v0.5.16
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: foxogram-${{github.run_id}} # the action automatically replaces \_\_VERSION\_\_ with the app version.
tagName: foxogram-${{github.run_id}}
releaseName: 'Foxogram ${{github.run_id}}'
prerelease: false
args: ${{ matrix.args }}

0 comments on commit a14825f

Please sign in to comment.