Merge pull request #5 from iwen-conf/fix/resize-zone #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: Cargo Check | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check key crates | |
| run: cargo check -p kaku -p kaku-gui | |
| universal-build: | |
| name: Universal Build Validation | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: aarch64-apple-darwin,x86_64-apple-darwin | |
| - name: Cache Cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build both targets | |
| run: | | |
| cargo build --release --target aarch64-apple-darwin -p kaku -p kaku-gui | |
| cargo build --release --target x86_64-apple-darwin -p kaku -p kaku-gui | |
| - name: Lipo merge and verify | |
| run: | | |
| mkdir -p target/universal/release | |
| lipo -create -output target/universal/release/kaku \ | |
| target/aarch64-apple-darwin/release/kaku \ | |
| target/x86_64-apple-darwin/release/kaku | |
| lipo -create -output target/universal/release/kaku-gui \ | |
| target/aarch64-apple-darwin/release/kaku-gui \ | |
| target/x86_64-apple-darwin/release/kaku-gui | |
| lipo -verify_arch arm64 x86_64 target/universal/release/kaku | |
| lipo -verify_arch arm64 x86_64 target/universal/release/kaku-gui | |
| lipo -info target/universal/release/kaku | |
| lipo -info target/universal/release/kaku-gui |