mirror of
https://github.com/ivabus/gui
synced 2025-06-07 07:40:27 +03:00
sanity
This commit is contained in:
parent
b826016bdb
commit
c6ab5962ff
2 changed files with 15 additions and 16 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -107,18 +107,14 @@ jobs:
|
||||||
platform:
|
platform:
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
name: darwin+x86-64
|
name: darwin+x86-64
|
||||||
id: mac_latest
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
name: linux+x86-64
|
name: linux+x86-64
|
||||||
id: linux
|
|
||||||
- os: [self-hosted, macOS, ARM64]
|
- os: [self-hosted, macOS, ARM64]
|
||||||
name: darwin+aarch64
|
name: darwin+aarch64
|
||||||
id: mac_m1
|
|
||||||
# err: Package atk was not found in the pkg-config search path.
|
# err: Package atk was not found in the pkg-config search path.
|
||||||
# requires atk >= 2.18
|
# requires atk >= 2.18
|
||||||
# - os: [self-hosted, linux, ARM64]
|
# - os: [self-hosted, linux, ARM64]
|
||||||
# name: linux+aarch64
|
# name: linux+aarch64
|
||||||
container: ${{ matrix.platform.container }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: teaxyz/setup@v0
|
- uses: teaxyz/setup@v0
|
||||||
|
@ -178,21 +174,25 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- darwin+x86-64
|
- name: darwin+x86-64
|
||||||
- linux+x86-64
|
id: mac_latest
|
||||||
- darwin+aarch64
|
- name: linux+x86-64
|
||||||
# - linux+aarch64
|
id: linux
|
||||||
|
- name: darwin+aarch64
|
||||||
|
id: mac_m1
|
||||||
|
# - name: linux+aarch64
|
||||||
|
# id: linux_arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.platform }}
|
name: ${{ matrix.platform.name }}
|
||||||
|
|
||||||
- run: tar xzf artifacts.tgz
|
- run: tar xzf artifacts.tgz
|
||||||
|
|
||||||
- name: build platform output
|
- name: build platform output
|
||||||
id: build_platform
|
id: build_platform
|
||||||
env:
|
env:
|
||||||
platform: ${{ matrix.platform }}
|
platform: ${{ matrix.platform.name }}
|
||||||
run: |
|
run: |
|
||||||
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
|
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
|
||||||
EXTENSION=dmg
|
EXTENSION=dmg
|
||||||
|
@ -222,9 +222,9 @@ jobs:
|
||||||
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
echo "extension=$EXTENSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: zip .app for MacOS
|
- name: zip .app for MacOS
|
||||||
if: startsWith(matrix.platform, 'darwin+')
|
if: startsWith(matrix.platform.name, 'darwin+')
|
||||||
run: |
|
run: |
|
||||||
cd ./modules/gui/src-tauri/target/release/bundle/macos/
|
cd ./macos/
|
||||||
zip -r tea.zip tea.app
|
zip -r tea.zip tea.app
|
||||||
|
|
||||||
- uses: aws-actions/configure-aws-credentials@v1
|
- uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
@ -240,17 +240,17 @@ jobs:
|
||||||
extension: ${{ steps.build_platform.outputs.extension }}
|
extension: ${{ steps.build_platform.outputs.extension }}
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp \
|
aws s3 cp \
|
||||||
"./modules/gui/src-tauri/target/release/bundle/$extension/tea_0.1.0_$platform.$extension" \
|
"./$extension/tea_0.1.0_$platform.$extension" \
|
||||||
"s3://preview.gui.tea.xyz/$prefix/tea_$platform.$extension"
|
"s3://preview.gui.tea.xyz/$prefix/tea_$platform.$extension"
|
||||||
|
|
||||||
- name: cp package zip for MacOS
|
- name: cp package zip for MacOS
|
||||||
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
if: startsWith(matrix.platform.name, 'darwin')
|
||||||
env:
|
env:
|
||||||
prefix: ${{ needs.changes.outputs.preview_folder }}
|
prefix: ${{ needs.changes.outputs.preview_folder }}
|
||||||
platform: ${{ steps.build_platform.outputs.build_platform }}
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp \
|
aws s3 cp \
|
||||||
./modules/gui/src-tauri/target/release/bundle/macos/tea.zip "s3://preview.gui.tea.xyz/$prefix/tea_$platform.zip"
|
./macos/tea.zip "s3://preview.gui.tea.xyz/$prefix/tea_$platform.zip"
|
||||||
|
|
||||||
- name: comment install for Linux
|
- name: comment install for Linux
|
||||||
if: startsWith(matrix.platform.name, 'linux')
|
if: startsWith(matrix.platform.name, 'linux')
|
||||||
|
|
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
@ -55,7 +55,6 @@ jobs:
|
||||||
name: darwin+aarch64
|
name: darwin+aarch64
|
||||||
# - os: [self-hosted, linux, ARM64]
|
# - os: [self-hosted, linux, ARM64]
|
||||||
# name: linux+aarch64
|
# name: linux+aarch64
|
||||||
container: ${{ matrix.platform.container }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: teaxyz/setup@v0
|
- uses: teaxyz/setup@v0
|
||||||
|
|
Loading…
Reference in a new issue