Skip to content

Commit

Permalink
Merge pull request #20 from fourlastor-alexandria/reduce-min-macos-ve…
Browse files Browse the repository at this point in the history
…rsion

Specify min macos version when building
  • Loading branch information
fourlastor committed Apr 30, 2024
2 parents a53d075 + 927dff7 commit 08a5470
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,28 @@ jobs:
Compress-Archive -Path tmp_build/roast-win-console-32.exe -Destination out/roast-win-console-32.exe.zip
Compress-Archive -Path tmp_build/roast-win-no-gpu-64.exe -Destination out/roast-win-no-gpu-64.exe.zip
Compress-Archive -Path tmp_build/roast-win-no-gpu-32.exe -Destination out/roast-win-no-gpu-32.exe.zip
- name: Build MacOS
- name: Build MacOS (setup)
if: matrix.os == 'macos-latest'
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
cargo build --release
- name: Build MacOS (x86_64)
if: matrix.os == 'macos-latest'
env:
MACOSX_DEPLOYMENT_TARGET: '10.12'
run: |
cargo build --target x86_64-apple-darwin --release
- name: Build MacOS (aarch64)
if: matrix.os == 'macos-latest'
env:
MACOSX_DEPLOYMENT_TARGET: '11.0'
run: |
cargo build --target aarch64-apple-darwin --release
- name: Build MacOS (release)
if: matrix.os == 'macos-latest'
run: |
mkdir -p out
mv target/release/roast ./roast-macos-x86_64
mv target/x86_64-apple-darwin/release/roast ./roast-macos-x86_64
mv target/aarch64-apple-darwin/release/roast ./roast-macos-aarch64
chmod +x ./roast-macos-x86_64 ./roast-macos-aarch64
zip out/roast-macos-x86_64.zip ./roast-macos-x86_64
Expand Down

0 comments on commit 08a5470

Please sign in to comment.