Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -13,9 +13,13 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
#- platform: arch-latest
|
||||
# output_dir_one: src-tauri/target/release/bundle/appimage/**.AppImage
|
||||
# output_dir_two: src-tauri/target/release/bundle/deb/**.deb
|
||||
- platform: ubuntu-latest
|
||||
output_dir_one: src-tauri/target/release/bundle/appimage/**.AppImage
|
||||
output_dir_two: src-tauri/target/release/bundle/deb/**.deb
|
||||
args: --target x86_64-unknown-linux-gnux32
|
||||
- platform: windows-latest
|
||||
output_dir_one: src-tauri/target/release/bundle/msi/**.msi
|
||||
output_dir_two: src-tauri/target/release/bundle/nsis/**.exe
|
||||
@@ -29,6 +33,11 @@ jobs:
|
||||
# output_dir_two: src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/**.dmg
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- name: Arch dependencies
|
||||
if: matrix.platform == 'arch-latest'
|
||||
run: |
|
||||
pacman --noconfirm -Syu nodejs npm git rust rustup git-lfs
|
||||
rustup default stable
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
- name: Checkout repository
|
||||
@@ -39,12 +48,12 @@ jobs:
|
||||
- name: install Rust stable
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
|
||||
targets: ${{ matrix.platform == 'ubuntu-latest' && 'x86_64-unknown-linux-gnux32,x86_64-unknown-linux-musl,x86_64-unknown-linux-ohos' || '' }}
|
||||
- name: Install Ubuntu dependencies
|
||||
if: matrix.platform == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt-get install libgtk-3-dev -y
|
||||
sudo apt-get install cmake libglvnd-dev glib-2.0 libglib2.0-dev -y
|
||||
sudo apt install libwebkit2gtk-4.0-dev \
|
||||
build-essential \
|
||||
curl \
|
||||
@@ -57,6 +66,8 @@ jobs:
|
||||
- name: Install frontend
|
||||
run: |
|
||||
npm install
|
||||
cd src-tauri/
|
||||
cargo add glib-sys@=0.15.10
|
||||
- name: Build Tauri app
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
@@ -66,6 +77,10 @@ jobs:
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: ${{ matrix.args }}
|
||||
- name: Search files
|
||||
run:
|
||||
ls src-tauri/
|
||||
find . -type f -name "*.bin"
|
||||
- name: Publish Tauri App
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user