chore: add install-rust-targets step for macOS universal builds
This commit is contained in:
parent
654e566dcb
commit
6959329fd6
@ -89,7 +89,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: |
|
run: |
|
||||||
rustup target add x86_64-apple-darwin
|
|
||||||
make build
|
make build
|
||||||
env:
|
env:
|
||||||
APP_PATH: '.'
|
APP_PATH: '.'
|
||||||
|
|||||||
@ -167,7 +167,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Build app
|
- name: Build app
|
||||||
run: |
|
run: |
|
||||||
rustup target add x86_64-apple-darwin
|
|
||||||
make build
|
make build
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
16
Makefile
16
Makefile
@ -30,6 +30,17 @@ endif
|
|||||||
yarn build:core
|
yarn build:core
|
||||||
yarn build:extensions && yarn build:extensions-web
|
yarn build:extensions && yarn build:extensions-web
|
||||||
|
|
||||||
|
# Install required Rust targets for macOS universal builds
|
||||||
|
install-rust-targets:
|
||||||
|
ifeq ($(shell uname -s),Darwin)
|
||||||
|
@echo "Detected macOS, installing universal build targets..."
|
||||||
|
rustup target add x86_64-apple-darwin
|
||||||
|
rustup target add aarch64-apple-darwin
|
||||||
|
@echo "Rust targets installed successfully!"
|
||||||
|
else
|
||||||
|
@echo "Not macOS; skipping Rust target installation."
|
||||||
|
endif
|
||||||
|
|
||||||
dev: install-and-build
|
dev: install-and-build
|
||||||
yarn download:bin
|
yarn download:bin
|
||||||
yarn download:lib
|
yarn download:lib
|
||||||
@ -68,11 +79,12 @@ test: lint
|
|||||||
cargo test --manifest-path src-tauri/utils/Cargo.toml
|
cargo test --manifest-path src-tauri/utils/Cargo.toml
|
||||||
|
|
||||||
# Builds and publishes the app
|
# Builds and publishes the app
|
||||||
build-and-publish: install-and-build
|
build-and-publish: install-and-build install-rust-targets
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
build: install-and-build
|
build: install-and-build install-rust-targets
|
||||||
|
install-rust-targets
|
||||||
yarn download:lib
|
yarn download:lib
|
||||||
yarn build
|
yarn build
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user