Compare commits
16 Commits
f997581c23
...
786d5428f8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
786d5428f8 | ||
|
|
e4da2510cc | ||
|
|
0e5384b908 | ||
| 013a5d9f17 | |||
|
|
7c2718ff9a | ||
|
|
27f011ec61 | ||
|
|
2e9ccf9c6e | ||
|
|
319ff7baf1 | ||
|
|
e61c9c5f58 | ||
| 04cd27a5f3 | |||
| d29fe317a8 | |||
| d4680ab6fc | |||
| 523d67b01f | |||
| e2b767779f | |||
| 6a0a97798d | |||
| 1c8493b33f |
@@ -51,24 +51,25 @@ jobs:
|
|||||||
- name: NPM offline setup
|
- name: NPM offline setup
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
mkdir -p dist/builds/darwin/arm64 dist/builds/darwin/x64
|
||||||
npm config set cache "$HOME/.npm-cache" --global
|
npm config set cache "$HOME/.npm-cache" --global
|
||||||
npm config set prefer-offline true --global
|
npm config set prefer-offline true --global
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install --prefer-offline --no-audit --no-fund
|
run: npm install --prefer-offline --no-audit --no-fund
|
||||||
|
|
||||||
- name: Build the application (${{ matrix.arch }})
|
- name: Build the application
|
||||||
run: |
|
run: |
|
||||||
npx electron-vite build
|
npx electron-vite build
|
||||||
npx electron-builder --mac --${{ matrix.arch }}
|
npx electron-builder --mac --${{ matrix.arch }}
|
||||||
|
|
||||||
- name: Check if files exist (${{ matrix.arch }})
|
- name: Check if files exist
|
||||||
run: |
|
run: |
|
||||||
echo "=== Checking dist structure ==="
|
echo "=== Checking dist structure ==="
|
||||||
find dist/builds/darwin/${{ matrix.arch }} -type f -name "*.pkg" 2>/dev/null || echo "No PKG files found"
|
find dist/builds/darwin/${{ matrix.arch }} -type f -name "*.pkg" 2>/dev/null || echo "No PKG files found"
|
||||||
ls -la dist/builds/darwin/${{ matrix.arch }}/ 2>/dev/null || echo "arch folder not found"
|
ls -la dist/builds/darwin/${{ matrix.arch }}/ 2>/dev/null || echo "arch folder not found"
|
||||||
|
|
||||||
- name: Upload ${{ matrix.arch }} to SSH using SCP
|
- name: Upload to SSH using SCP
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SDU_SSH_HOST }}
|
host: ${{ secrets.SDU_SSH_HOST }}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
name: Linux Kernel Build
|
name: Linux Kernel Build
|
||||||
run-name: Build and Upload Linux Kernel
|
run-name: Build and Upload Linux Kernel
|
||||||
|
|
||||||
#Запускаем только кнопкой "Run workflow" в Actions
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
@@ -16,9 +15,11 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
arch: [x64, arm64]
|
include:
|
||||||
env:
|
- arch: x64
|
||||||
ARCH: ${{ matrix.arch }}
|
out_dir: x86_64
|
||||||
|
- arch: arm64
|
||||||
|
out_dir: arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -29,59 +30,34 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
|
|
||||||
- name: Cache npm dependencies
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-linux-npm-${{ hashFiles('**/package.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-linux-npm-
|
|
||||||
if-no-files-found: ignore
|
|
||||||
|
|
||||||
- name: Cache electron-builder
|
|
||||||
uses: actions/cache@v5
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/electron
|
|
||||||
key: ${{ runner.os }}-linux-electron-builder-${{ hashFiles('**/electron-builder.yml') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-linux-electron-builder-
|
|
||||||
if-no-files-found: ignore
|
|
||||||
|
|
||||||
- name: NPM offline setup
|
|
||||||
run: |
|
|
||||||
npm config set cache ~/.npm --global
|
|
||||||
npm config set prefer-offline true --global
|
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install --no-audit --no-fund
|
run: npm install --no-audit --no-fund
|
||||||
|
|
||||||
- name: Debug ARCH
|
- name: Debug ARCH
|
||||||
run: |
|
run: |
|
||||||
echo "matrix.arch = ${{ matrix.arch }}"
|
echo "arch=${{ matrix.arch }}"
|
||||||
echo "ARCH = $ARCH"
|
echo "out_dir=${{ matrix.out_dir }}"
|
||||||
|
|
||||||
- name: Build the application (${{ env.ARCH }})
|
- name: Build the application
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/builds/linux/$ARCH
|
mkdir -p dist/builds/linux/${{ matrix.out_dir }}
|
||||||
mkdir -p dist/builds/linux/x86_64
|
|
||||||
npx electron-vite build
|
npx electron-vite build
|
||||||
npx electron-builder --linux --$ARCH
|
npx electron-builder --linux --$ARCH
|
||||||
|
|
||||||
- name: Check if files exist (${{ env.ARCH }})
|
- name: Check if files exist
|
||||||
run: |
|
run: |
|
||||||
echo "=== Checking dist structure ==="
|
echo "=== Checking dist structure ==="
|
||||||
find dist/builds/linux/$ARCH -type f -name "*.AppImage" 2>/dev/null || echo "No AppImage files found"
|
find dist/builds/linux/${{ matrix.out_dir }} -type f -name "*.AppImage" 2>/dev/null || echo "No AppImage files found"
|
||||||
ls -la dist/builds/linux/$ARCH/ 2>/dev/null || echo "arch folder not found"
|
ls -la dist/builds/linux/${{ matrix.out_dir }}/ 2>/dev/null || echo "arch folder not found"
|
||||||
|
|
||||||
- name: Upload ${{ env.ARCH }} to SSH using SCP
|
- name: Upload to SSH using SCP
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SDU_SSH_HOST }}
|
host: ${{ secrets.SDU_SSH_HOST }}
|
||||||
username: ${{ secrets.SDU_SSH_USERNAME }}
|
username: ${{ secrets.SDU_SSH_USERNAME }}
|
||||||
password: ${{ secrets.SDU_SSH_PASSWORD }}
|
password: ${{ secrets.SDU_SSH_PASSWORD }}
|
||||||
port: 22
|
port: 22
|
||||||
source: dist/builds/linux/${{ env.ARCH }}/Rosetta-*.AppImage
|
source: dist/builds/linux/${{ matrix.out_dir }}/Rosetta-*.AppImage
|
||||||
target: ${{ secrets.SDU_SSH_KERNEL }}/linux/${{ env.ARCH }}
|
target: ${{ secrets.SDU_SSH_KERNEL }}/linux/${{ matrix.arch }}
|
||||||
strip_components: 4
|
strip_components: 4
|
||||||
rm: true
|
rm: true
|
||||||
Reference in New Issue
Block a user