Skip to content

Commit 541eb94

Browse files
committed
ci: fix run commands
1 parent 30dd3c0 commit 541eb94

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

.github/workflows/build-sponsored.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,24 @@ jobs:
4141
- name: Install dependencies
4242
run: pnpm install
4343

44-
- name: Rebuild native dependencies
45-
run: |
46-
if [ "${{ matrix.platform }}" = "mac" ]; then
47-
pnpm run rebuild --arch ${{ matrix.arch }}
48-
else
49-
pnpm run rebuild
50-
fi
44+
- name: Rebuild native dependencies (macOS)
45+
if: matrix.platform == 'mac'
46+
run: pnpm run rebuild --arch ${{ matrix.arch }}
5147

52-
- name: Build application (sponsored)
53-
run: |
54-
if [ "${{ matrix.platform }}" = "mac" ]; then
55-
pnpm run build:sponsored:${{ matrix.platform }}:${{ matrix.arch }}
56-
else
57-
pnpm run build:sponsored:${{ matrix.platform }}
58-
fi
48+
- name: Rebuild native dependencies (other platforms)
49+
if: matrix.platform != 'mac'
50+
run: pnpm run rebuild
51+
52+
- name: Build application (sponsored macOS)
53+
if: matrix.platform == 'mac'
54+
run: pnpm run build:sponsored:${{ matrix.platform }}:${{ matrix.arch }}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
VITE_SPONSORED: true
58+
59+
- name: Build application (sponsored other platforms)
60+
if: matrix.platform != 'mac'
61+
run: pnpm run build:sponsored:${{ matrix.platform }}
5962
env:
6063
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6164
VITE_SPONSORED: true

.github/workflows/release.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,23 @@ jobs:
4949
- name: Install dependencies
5050
run: pnpm install
5151

52-
- name: Rebuild native dependencies
53-
run: |
54-
if [ "${{ matrix.platform }}" = "mac" ]; then
55-
pnpm run rebuild --arch ${{ matrix.arch }}
56-
else
57-
pnpm run rebuild
58-
fi
59-
60-
- name: Build application
61-
run: |
62-
if [ "${{ matrix.platform }}" = "mac" ]; then
63-
pnpm run build:${{ matrix.platform }}:${{ matrix.arch }}
64-
else
65-
pnpm run build:${{ matrix.platform }}
66-
fi
52+
- name: Rebuild native dependencies (macOS)
53+
if: matrix.platform == 'mac'
54+
run: pnpm run rebuild --arch ${{ matrix.arch }}
55+
56+
- name: Rebuild native dependencies (other platforms)
57+
if: matrix.platform != 'mac'
58+
run: pnpm run rebuild
59+
60+
- name: Build application (macOS)
61+
if: matrix.platform == 'mac'
62+
run: pnpm run build:${{ matrix.platform }}:${{ matrix.arch }}
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
66+
- name: Build application (other platforms)
67+
if: matrix.platform != 'mac'
68+
run: pnpm run build:${{ matrix.platform }}
6769
env:
6870
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6971

0 commit comments

Comments
 (0)