Compare commits

..

16 Commits

Author SHA1 Message Date
RoyceDa
786d5428f8 Merge branch 'main' into dev 2026-03-24 16:50:46 +02:00
RoyceDa
e4da2510cc Улучшение CI/CD 2026-03-24 16:35:01 +02:00
RoyceDa
0e5384b908 ci/cd test 2026-03-24 16:19:07 +02:00
013a5d9f17 Обновить .gitea/workflows/linux.yaml 2026-03-24 14:13:09 +00:00
RoyceDa
7c2718ff9a Merge branch 'dev' into main
All checks were successful
SP Builds / build (push) Successful in 14m6s
2026-03-22 19:59:52 +02:00
RoyceDa
27f011ec61 Merge branch 'dev' into main
Some checks failed
SP Builds / build (push) Has been cancelled
2026-03-22 19:56:47 +02:00
RoyceDa
2e9ccf9c6e Merge branch 'dev' into main 2026-03-22 17:30:50 +02:00
RoyceDa
319ff7baf1 Merge branch 'main' of https://git.rosetta.im/Rosetta/desktop into main 2026-03-22 16:44:59 +02:00
RoyceDa
e61c9c5f58 Merge branch 'dev' into main 2026-03-22 16:43:57 +02:00
04cd27a5f3 Обновить .gitea/workflows/service-packs.yaml 2026-03-21 19:41:14 +00:00
d29fe317a8 Merge pull request '1.1.2-1.5.3' (#20) from dev into main
Some checks failed
SP Builds / build (push) Has been cancelled
Reviewed-on: #20
2026-03-21 19:37:20 +00:00
d4680ab6fc Merge pull request '1.1.1-1.5.3' (#17) from dev into main
All checks were successful
Windows Kernel Build / build (push) Successful in 14m52s
MacOS Kernel Build / build (push) Successful in 17m27s
SP Builds / build (push) Successful in 6m22s
Linux Kernel Build / build (push) Successful in 41m22s
Reviewed-on: #17
2026-03-20 16:49:29 +00:00
523d67b01f 1.1.0-1.5.2
All checks were successful
Windows Kernel Build / build (push) Successful in 13m21s
MacOS Kernel Build / build (push) Successful in 13m57s
SP Builds / build (push) Successful in 6m41s
Linux Kernel Build / build (push) Successful in 29m21s
Reviewed-on: #16
2026-03-18 17:59:13 +00:00
e2b767779f 1.0.8-1.5.0
All checks were successful
SP Builds / build (push) Successful in 5m26s
Reviewed-on: #15
2026-02-24 17:20:21 +00:00
6a0a97798d 1.0.7-1.5.0
All checks were successful
SP Builds / build (push) Successful in 5m34s
Reviewed-on: #14
2026-02-24 16:46:36 +00:00
1c8493b33f 1.0.6-1.5.0
All checks were successful
SP Builds / build (push) Successful in 3m43s
Reviewed-on: #11
2026-02-21 20:27:51 +00:00
2 changed files with 19 additions and 42 deletions

View File

@@ -51,24 +51,25 @@ jobs:
- name: NPM offline setup
shell: bash
run: |
mkdir -p dist/builds/darwin/arm64 dist/builds/darwin/x64
npm config set cache "$HOME/.npm-cache" --global
npm config set prefer-offline true --global
- name: Install npm dependencies
run: npm install --prefer-offline --no-audit --no-fund
- name: Build the application (${{ matrix.arch }})
- name: Build the application
run: |
npx electron-vite build
npx electron-builder --mac --${{ matrix.arch }}
- name: Check if files exist (${{ matrix.arch }})
- name: Check if files exist
run: |
echo "=== Checking dist structure ==="
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"
- name: Upload ${{ matrix.arch }} to SSH using SCP
- name: Upload to SSH using SCP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.SDU_SSH_HOST }}

View File

@@ -1,7 +1,6 @@
name: Linux Kernel Build
run-name: Build and Upload Linux Kernel
#Запускаем только кнопкой "Run workflow" в Actions
on:
workflow_dispatch:
push:
@@ -16,9 +15,11 @@ jobs:
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
env:
ARCH: ${{ matrix.arch }}
include:
- arch: x64
out_dir: x86_64
- arch: arm64
out_dir: arm64
steps:
- name: Checkout code
@@ -29,59 +30,34 @@ jobs:
with:
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
run: npm install --no-audit --no-fund
- name: Debug ARCH
run: |
echo "matrix.arch = ${{ matrix.arch }}"
echo "ARCH = $ARCH"
echo "arch=${{ matrix.arch }}"
echo "out_dir=${{ matrix.out_dir }}"
- name: Build the application (${{ env.ARCH }})
- name: Build the application
run: |
mkdir -p dist/builds/linux/$ARCH
mkdir -p dist/builds/linux/x86_64
mkdir -p dist/builds/linux/${{ matrix.out_dir }}
npx electron-vite build
npx electron-builder --linux --$ARCH
- name: Check if files exist (${{ env.ARCH }})
- name: Check if files exist
run: |
echo "=== Checking dist structure ==="
find dist/builds/linux/$ARCH -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"
find dist/builds/linux/${{ matrix.out_dir }} -type f -name "*.AppImage" 2>/dev/null || echo "No AppImage files 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
with:
host: ${{ secrets.SDU_SSH_HOST }}
username: ${{ secrets.SDU_SSH_USERNAME }}
password: ${{ secrets.SDU_SSH_PASSWORD }}
port: 22
source: dist/builds/linux/${{ env.ARCH }}/Rosetta-*.AppImage
target: ${{ secrets.SDU_SSH_KERNEL }}/linux/${{ env.ARCH }}
source: dist/builds/linux/${{ matrix.out_dir }}/Rosetta-*.AppImage
target: ${{ secrets.SDU_SSH_KERNEL }}/linux/${{ matrix.arch }}
strip_components: 4
rm: true