From e229ca9c84021ab28791cf89917237ffd4af6c70 Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Sat, 28 Feb 2026 01:54:22 +0000 Subject: [PATCH 1/5] ci: Adds MacOS Bazel Builder Signed-off-by: Ethan Mahintorabi --- .../workflows/github-actions-macos-bazel.yml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/github-actions-macos-bazel.yml diff --git a/.github/workflows/github-actions-macos-bazel.yml b/.github/workflows/github-actions-macos-bazel.yml new file mode 100644 index 0000000000..89604feb02 --- /dev/null +++ b/.github/workflows/github-actions-macos-bazel.yml @@ -0,0 +1,53 @@ +name: Build on macOS +on: + push: + branches: + - master # Updated to strictly track master + pull_request: + workflow_dispatch: + +jobs: + Mac-Build: + if: github.repository_owner != 'The-OpenROAD-Project' && github.repository_owner != 'The-OpenROAD-Project-private' && github.repository_owner != 'The-OpenROAD-Project-staging' + runs-on: macos-latest + steps: + - name: Setup xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: latest-stable + + - name: Check out repository code + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + # 1. RESTORE: All jobs (PRs, manual runs, master) get to read the cache + - name: Restore Bazel Disk Cache + uses: actions/cache/restore@v4 + with: + path: ~/.cache/bazel-disk-cache + key: ${{ runner.os }}-bazel-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-bazel- + + - name: Install dependencies + run: | + ./etc/DependencyInstaller.sh + + - name: Install Bazelisk + run: brew install bazelisk + + - name: Build OpenROAD + run: | + bazelisk build \ + --disk_cache=~/.cache/bazel-disk-cache \ + --experimental_disk_cache_gc_max_size=5G \ + --//:platform=gui //:openroad + + # 2. SAVE: Only executes if this is a push/merge directly to the master branch + - name: Save Bazel Disk Cache + if: github.ref == 'refs/heads/master' && github.event_name == 'push' + uses: actions/cache/save@v4 + with: + path: ~/.cache/bazel-disk-cache + key: ${{ runner.os }}-bazel-${{ github.sha }} \ No newline at end of file From 215ece742b19390ff31b3d332490fd0b9ab586f6 Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Sat, 28 Feb 2026 01:58:08 +0000 Subject: [PATCH 2/5] add local testing branch Signed-off-by: Ethan Mahintorabi --- .github/workflows/github-actions-macos-bazel.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-actions-macos-bazel.yml b/.github/workflows/github-actions-macos-bazel.yml index 89604feb02..d39e522b1a 100644 --- a/.github/workflows/github-actions-macos-bazel.yml +++ b/.github/workflows/github-actions-macos-bazel.yml @@ -3,6 +3,7 @@ on: push: branches: - master # Updated to strictly track master + - macos-bazel pull_request: workflow_dispatch: From fb03a40e02018e370e4064302f5f71546fdcfaea Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Sat, 28 Feb 2026 01:59:56 +0000 Subject: [PATCH 3/5] remote dep installer Signed-off-by: Ethan Mahintorabi --- .github/workflows/github-actions-macos-bazel.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/github-actions-macos-bazel.yml b/.github/workflows/github-actions-macos-bazel.yml index d39e522b1a..548edc4387 100644 --- a/.github/workflows/github-actions-macos-bazel.yml +++ b/.github/workflows/github-actions-macos-bazel.yml @@ -3,7 +3,7 @@ on: push: branches: - master # Updated to strictly track master - - macos-bazel + - macos-bazel # for local testing pull_request: workflow_dispatch: @@ -31,10 +31,6 @@ jobs: restore-keys: | ${{ runner.os }}-bazel- - - name: Install dependencies - run: | - ./etc/DependencyInstaller.sh - - name: Install Bazelisk run: brew install bazelisk From aa3ac6e47060af7fb645f89111c57d92debafe92 Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Sat, 28 Feb 2026 05:25:48 +0000 Subject: [PATCH 4/5] remove if check Signed-off-by: Ethan Mahintorabi --- .github/workflows/github-actions-macos-bazel.yml | 2 -- MODULE.bazel | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-macos-bazel.yml b/.github/workflows/github-actions-macos-bazel.yml index 548edc4387..ebcbd2bf37 100644 --- a/.github/workflows/github-actions-macos-bazel.yml +++ b/.github/workflows/github-actions-macos-bazel.yml @@ -3,13 +3,11 @@ on: push: branches: - master # Updated to strictly track master - - macos-bazel # for local testing pull_request: workflow_dispatch: jobs: Mac-Build: - if: github.repository_owner != 'The-OpenROAD-Project' && github.repository_owner != 'The-OpenROAD-Project-private' && github.repository_owner != 'The-OpenROAD-Project-staging' runs-on: macos-latest steps: - name: Setup xcode diff --git a/MODULE.bazel b/MODULE.bazel index 4aa8fe0e9f..8e706976b4 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -92,8 +92,8 @@ git_override( bazel_dep(name = "qt-bazel") git_override( module_name = "qt-bazel", - commit = "2b450c5d0b84e0a48e0e7797486e62d24f65c78b", - remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts", + commit = "c42fdd2cb15d284f8ec78f13485a1181d722ea85", + remote = "https://github.com/feuerste/qt_bazel_prebuilts", ) # Updated dependencies of qt_bazel_prebuilts. Once the updated versions From 79e5c86f58dfba7b8a83b5ff13b09972347e4c46 Mon Sep 17 00:00:00 2001 From: Ethan Mahintorabi Date: Sat, 28 Feb 2026 07:38:20 +0000 Subject: [PATCH 5/5] fix module bazel Signed-off-by: Ethan Mahintorabi --- MODULE.bazel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 8e706976b4..4aa8fe0e9f 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -92,8 +92,8 @@ git_override( bazel_dep(name = "qt-bazel") git_override( module_name = "qt-bazel", - commit = "c42fdd2cb15d284f8ec78f13485a1181d722ea85", - remote = "https://github.com/feuerste/qt_bazel_prebuilts", + commit = "2b450c5d0b84e0a48e0e7797486e62d24f65c78b", + remote = "https://github.com/The-OpenROAD-Project/qt_bazel_prebuilts", ) # Updated dependencies of qt_bazel_prebuilts. Once the updated versions