1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-25 15:03:34 +00:00

try to fix m1 build v2

This commit is contained in:
Alula 2022-03-22 03:01:08 +01:00
parent 42edfd7fd6
commit f60440f877
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -8,6 +8,11 @@ environment:
global: global:
PROJECT_NAME: doukutsu-rs PROJECT_NAME: doukutsu-rs
matrix: matrix:
- channel: stable
target: aarch64-apple-darwin
target_name: macos
job_name: mac-arm64
appveyor_build_worker_image: macos-monterey
- channel: stable - channel: stable
target: x86_64-pc-windows-msvc target: x86_64-pc-windows-msvc
target_name: win64 target_name: win64
@ -27,11 +32,6 @@ environment:
target_name: macos target_name: macos
job_name: mac-x64 job_name: mac-x64
appveyor_build_worker_image: macos-monterey appveyor_build_worker_image: macos-monterey
- channel: stable
target: aarch64-apple-darwin
target_name: macos
job_name: mac-arm64
appveyor_build_worker_image: macos-monterey
matrix: matrix:
fast_finish: true fast_finish: true
@ -76,10 +76,11 @@ for:
- appveyor_build_worker_image: macos-monterey - appveyor_build_worker_image: macos-monterey
install: install:
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel --default-host $target - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -yv --default-toolchain $channel
- export PATH=$PATH:$HOME/.cargo/bin - export PATH=$PATH:$HOME/.cargo/bin
- rustup update - rustup update
- rustup default $channel - rustup default $channel
- rustup target add $target
- rustc -vV - rustc -vV
- cargo -vV - cargo -vV
- cargo install cargo-bundle - cargo install cargo-bundle
@ -94,10 +95,10 @@ for:
- appveyor DownloadFile https://github.com/doukutsu-rs/game-data/archive/master.zip -FileName ../game-data.zip - appveyor DownloadFile https://github.com/doukutsu-rs/game-data/archive/master.zip -FileName ../game-data.zip
- 7z x ../game-data.zip - 7z x ../game-data.zip
- mv game-data-master data - mv game-data-master data
- CARGO_INCREMENTAL=1 cargo bundle --release - CARGO_INCREMENTAL=1 cargo bundle --release --target $target
- mkdir release - mkdir release
- cp LICENSE ./release/LICENSE - cp LICENSE ./release/LICENSE
- cp -a target/release/bundle/osx/doukutsu-rs.app ./release/doukutsu-rs.app - cp -a target/$target/release/bundle/osx/doukutsu-rs.app ./release/doukutsu-rs.app
- cd release - cd release
- 7z a ../doukutsu-rs_$target_name.zip * - 7z a ../doukutsu-rs_$target_name.zip *
- appveyor PushArtifact ../doukutsu-rs_$target_name.zip - appveyor PushArtifact ../doukutsu-rs_$target_name.zip