From 11d7f28629c045258ddfd197cdf3bf1779260665 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Mon, 27 May 2024 00:51:12 +0700 Subject: [PATCH] Adds step to build macOS binary --- .github/workflows/ci.yml | 13 +++++++++++++ .gitignore | 1 + 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c17ba46..4a83c15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,19 @@ jobs: uses: actions/checkout@v4 - name: Lint run: cargo clippy --workspace -- -D warnings + - name: Build + run: | + cargo build --release --target aarch64-apple-darwin + cargo build --release --target x86_64-apple-darwin + mkdir -p dist/bin + lipo -create -output dist/bin/warp target/aarch64-apple-darwin/release/warp target/x86_64-apple-darwin/release/warp + - name: Create Apple Disk Image + run: hdiutil create -volname Warp -srcfolder dist Warp.dmg + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: warp-macos + path: Warp.dmg windows: name: Build (Windows) runs-on: windows-latest diff --git a/.gitignore b/.gitignore index 1b72444..d425d98 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /Cargo.lock +/dist/ /target