mirror of
https://github.com/ivabus/gui
synced 2025-06-07 15:50:27 +03:00
add adjusted macos build platform
This commit is contained in:
parent
f5f712f388
commit
51a1168306
1 changed files with 13 additions and 10 deletions
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
|
@ -149,7 +149,7 @@ jobs:
|
||||||
if: matrix.platform.name == 'linux+x86-64'
|
if: matrix.platform.name == 'linux+x86-64'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf pkg-config
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
# The prefix cache key, this can be changed to start a new cache manually.
|
# The prefix cache key, this can be changed to start a new cache manually.
|
||||||
|
@ -178,18 +178,21 @@ jobs:
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
|
|
||||||
- run: echo $name
|
- name: build platform output
|
||||||
env:
|
id: build_platform
|
||||||
name: ${{matrix.platform.name}}
|
run: |
|
||||||
|
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
|
||||||
|
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: mac-os cp package images from prod to preview bucket
|
- name: mac-os cp package images from prod to preview bucket
|
||||||
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
if: matrix.platform.name == 'darwin+x86-64' || matrix.platform.name == 'darwin+aarch64'
|
||||||
env:
|
env:
|
||||||
prefix: ${{ needs.changes.outputs.preview_folder }}
|
prefix: ${{ needs.changes.outputs.preview_folder }}
|
||||||
platform: ${{ matrix.platform.name }}
|
platform: ${{ steps.build_platform.outputs.build_platform }}
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp ./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_x64.dmg \
|
aws s3 cp "./modules/gui/src-tauri/target/release/bundle/dmg/tea_0.1.0_$platform.dmg" \
|
||||||
"s3://preview.gui.tea.xyz/$prefix/gui.$platform.dmg"
|
"s3://preview.gui.tea.xyz/$prefix/gui_$platform.dmg"
|
||||||
|
|
||||||
|
|
||||||
# - name: ubuntu cp package images from prod to preview bucket
|
# - name: ubuntu cp package images from prod to preview bucket
|
||||||
# if: matrix.platform == 'ubuntu-latest'
|
# if: matrix.platform == 'ubuntu-latest'
|
||||||
|
@ -218,8 +221,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
message-id: ${{ matrix.platform.name }}-comment-${{steps.prefix.outputs.prefix}}
|
message-id: ${{ matrix.platform.name }}-comment-${{steps.prefix.outputs.prefix}}
|
||||||
message: |
|
message: |
|
||||||
**installer for ${{ matrix.platform }} is at**: [here](http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{steps.prefix.outputs.prefix}}/gui.dmg)
|
**installer for ${{ matrix.platform.name }} is at**: [here](http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{steps.prefix.outputs.prefix}}/gui_${{steps.build_platform.outputs.build_platform}}.dmg)
|
||||||
```bash
|
```bash
|
||||||
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/gui.${{ matrix.platform.name }}.dmg
|
http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com/${{ needs.changes.outputs.preview_folder }}/gui.${{ steps.build_platform.outputs.build_platform }}.dmg
|
||||||
```
|
```
|
||||||
copy-paste into a browser to download
|
copy-paste into a browser to download
|
Loading…
Reference in a new issue