Skip to content

Commit bc01403

Browse files
authored
ext-php-rs does not need to be a ssh dep anymore (#37)
1 parent e80bf78 commit bc01403

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,6 @@ jobs:
145145
ref: PHP-8.4
146146
- name: Install dependencies
147147
run: pnpm install
148-
- name: Give GitHub Actions access to ext-php-rs
149-
uses: webfactory/[email protected]
150-
with:
151-
ssh-private-key: ${{ secrets.SECRET_REPO_DEPLOY_KEY }}
152148
- name: Fetch cargo dependencies
153149
run: cargo fetch --target ${{ matrix.settings.target }}
154150
shell: bash
@@ -200,8 +196,6 @@ jobs:
200196
- name: Build in docker
201197
uses: addnab/docker-run-action@v3
202198
if: ${{ matrix.settings.docker }}
203-
env:
204-
ID_RSA: ${{ secrets.SECRET_REPO_DEPLOY_KEY }}
205199
with:
206200
image: ${{ matrix.settings.docker }}
207201
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
@@ -218,17 +212,6 @@ jobs:
218212
corepack disable
219213
npm i -g pnpm
220214
221-
# Set up SSH key (to checkout ext-php-rs with cargo)
222-
mkdir -p ~/.ssh
223-
eval `ssh-agent -s`
224-
echo "${{ secrets.SECRET_REPO_DEPLOY_KEY }}" | tr -d '\r' | ssh-add -
225-
ssh-add -l
226-
mkdir -p ~/.ssh
227-
touch ~/.ssh/config
228-
touch ~/.ssh/known_hosts
229-
chmod -R 400 ~/.ssh
230-
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
231-
232215
# Build PHP
233216
cd php-src
234217
./buildconf --force
@@ -366,10 +349,6 @@ jobs:
366349
- name: List packages
367350
run: ls -R ./npm
368351
shell: bash
369-
- name: Give GitHub Actions access to ext-php-rs
370-
uses: webfactory/[email protected]
371-
with:
372-
ssh-private-key: ${{ secrets.SECRET_REPO_DEPLOY_KEY }}
373352
- name: Test bindings
374353
run: pnpm test
375354

crates/php/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ path = "src/main.rs"
1414
[dependencies]
1515
bytes = "1.10.1"
1616
hostname = "0.4.1"
17-
ext-php-rs = { git = "ssh://git@github.com/platformatic/ext-php-rs.git" }
17+
ext-php-rs = { git = "https://github.com/platformatic/ext-php-rs.git" }
1818
# ext-php-rs = { path = "../../../ext-php-rs" }
1919
lang_handler = { path = "../lang_handler" }
2020
libc = "0.2.171"

0 commit comments

Comments
 (0)