Skip to content

Commit f8a6116

Browse files
install necessary rust targets
Signed-off-by: Nikita Skrynnik <[email protected]>
1 parent 170ee4b commit f8a6116

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25+
- name: Check Release Exists
26+
env:
27+
GH_TOKEN: ${{ github.token }}
28+
run: |
29+
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
30+
echo "Releasing version: $VERSION"
31+
if gh release view "v$VERSION" > /dev/null 2>&1; then
32+
echo "Release $VERSION already exists!"
33+
exit 1
34+
fi
35+
2536
- name: Setup NodeJS
2637
uses: actions/setup-node@v4
2738
with:
@@ -36,17 +47,6 @@ jobs:
3647
- name: Install Node Modules
3748
run: npm install
3849

39-
- name: Check Release Exists
40-
env:
41-
GH_TOKEN: ${{ github.token }}
42-
run: |
43-
VERSION=$(jq -r '.version' src-tauri/tauri.conf.json)
44-
echo "Releasing version: $VERSION"
45-
if gh release view "v$VERSION" > /dev/null 2>&1; then
46-
echo "Release $VERSION already exists!"
47-
exit 1
48-
fi
49-
5050
- name: Build Huly Browser
5151
uses: tauri-apps/tauri-action@v0
5252
id: tauri-build
@@ -87,14 +87,6 @@ jobs:
8787
steps:
8888
- uses: actions/checkout@v4
8989

90-
- name: Setup NodeJS
91-
uses: actions/setup-node@v4
92-
with:
93-
node-version: lts/*
94-
95-
- name: Install Node Modules
96-
run: npm install
97-
9890
- name: Check Release Exists
9991
env:
10092
GH_TOKEN: ${{ github.token }}
@@ -106,6 +98,19 @@ jobs:
10698
exit 1
10799
fi
108100
101+
- name: Setup NodeJS
102+
uses: actions/setup-node@v4
103+
with:
104+
node-version: lts/*
105+
106+
- name: Install Node Modules
107+
run: npm install
108+
109+
- name: Install Rust Targets
110+
run: |
111+
rustup target add aarch64-apple-darwin
112+
rustup target add x86_64-apple-darwin
113+
109114
- name: Import Apple Developer Certificate
110115
env:
111116
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}

0 commit comments

Comments
 (0)