Skip to content

Commit 6682665

Browse files
restore install-rust-and-protoc and skip mkdir in /root/ on mac
Signed-off-by: James Xin <[email protected]>
1 parent ad4c0ca commit 6682665

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/setup-php-extension/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ runs:
6969
run: |
7070
brew install clang-format
7171
72+
- name: Install Rust and protoc
73+
uses: ./.github/workflows/install-rust-and-protoc
74+
with:
75+
github-token: ${{ github.token }}
76+
7277
- name: Install cbindgen
7378
shell: bash
7479
run: cargo install cbindgen

.github/workflows/test-pie.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ jobs:
109109
110110
# Initialize composer config directories and fix permissions
111111
mkdir -p "$HOME/.config/composer"
112-
sudo mkdir -p /root/.config/composer
112+
# Skip root directory creation on macOS due to SIP
113+
if [[ "${{ matrix.host.OS }}" != "macos" ]]; then
114+
sudo mkdir -p /root/.config/composer
115+
fi
113116
114117
# Make sure root can read the user's composer config
115118
sudo chmod -R 755 "$HOME/.config/composer"

0 commit comments

Comments
 (0)