mirror of
https://github.com/kunkunsh/kunkun-ext-neohtop.git
synced 2025-06-06 18:45:03 +00:00
cross compilation for both linux architectures
This commit is contained in:
parent
eaa9eba5f3
commit
8f2e94e03d
37
.github/workflows/linux-nightly.yml
vendored
37
.github/workflows/linux-nightly.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Linux (x86_64) Nightly Build
|
name: Linux (x86_64, aarch64) Nightly Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Allows manual triggering
|
workflow_dispatch: # Allows manual triggering
|
||||||
@ -10,6 +10,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Build Linux Packages
|
name: Build Linux Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -23,6 +26,12 @@ jobs:
|
|||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Install Cross-Compilation Tools
|
||||||
|
if: matrix.target == 'aarch64-unknown-linux-gnu'
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
|
||||||
|
|
||||||
- name: Install Linux Dependencies
|
- name: Install Linux Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
@ -44,37 +53,37 @@ jobs:
|
|||||||
- name: Build Frontend
|
- name: Build Frontend
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Build AppImage (x86_64)
|
- name: Build AppImage (${{ matrix.target }})
|
||||||
run: |
|
run: |
|
||||||
echo "Building AppImage for x86_64..."
|
echo "Building AppImage for ${{ matrix.target }}..."
|
||||||
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles appimage
|
npm run tauri build -- --target ${{ matrix.target }} --bundles appimage
|
||||||
|
|
||||||
- name: Build Debian Package (x86_64)
|
- name: Build Debian Package (${{ matrix.target }})
|
||||||
run: |
|
run: |
|
||||||
echo "Building Debian package for x86_64..."
|
echo "Building Debian package for ${{ matrix.target }}..."
|
||||||
npm run tauri build -- --target x86_64-unknown-linux-gnu --bundles deb
|
npm run tauri build -- --target ${{ matrix.target }} --bundles deb
|
||||||
|
|
||||||
- name: Upload AppImage
|
- name: Upload AppImage
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-appimage
|
name: linux-appimage-${{ matrix.target }}
|
||||||
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
path: src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage
|
||||||
|
|
||||||
- name: Upload Debian Package
|
- name: Upload Debian Package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: linux-deb
|
name: linux-deb-${{ matrix.target }}
|
||||||
path: src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
path: src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
if: github.event_name == 'schedule' # Only create release for scheduled builds
|
if: github.event_name == 'schedule'
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: Linux Nightly Build ${{ github.sha }}
|
name: Linux Nightly Build ${{ github.sha }}
|
||||||
tag_name: linux-nightly-${{ github.sha }}
|
tag_name: linux-nightly-${{ github.sha }}
|
||||||
files: |
|
files: |
|
||||||
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/appimage/*.AppImage
|
src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage
|
||||||
src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/*.deb
|
src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
|
||||||
prerelease: true
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user