Skip to content

Commit 66aa84a

Browse files
author
Googlefan
committed
feat: linux & mac(arm64) support
1 parent f94baf6 commit 66aa84a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
include:
14-
#- platform: 'macos-latest' # for Arm based macs (M1 and above).
15-
# args: '--target aarch64-apple-darwin'
16-
#- platform: 'macos-latest' # for Intel based macs.
14+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
15+
args: '--target aarch64-apple-darwin'
16+
# - platform: 'macos-latest' # for Intel based macs.
1717
# args: '--target x86_64-apple-darwin'
18-
#- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
19-
# args: ''
18+
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
19+
args: ''
2020
- platform: 'windows-latest'
2121
args: ''
2222

@@ -47,12 +47,11 @@ jobs:
4747
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
4848
- name: Get short SHA(non windows)
4949
if: matrix.platform != 'windows-latest'
50-
run: |
51-
calculatedSha=$(git rev-parse --short ${{ github.sha }})
52-
echo "SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
50+
run: echo "SHORT_SHA=${GITHUB_SHA:0:8}" >> $GITHUB_ENV
5351
- uses: tauri-apps/tauri-action@v0
5452
env:
5553
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5654
with:
5755
tagName: ${{ env.SHORT_SHA }}
58-
releaseName: ${{ env.SHORT_SHA }}
56+
releaseName: ${{ env.SHORT_SHA }}
57+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)