Skip to content

Commit e4099c8

Browse files
committed
Use actions checkout
1 parent 1d8831f commit e4099c8

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/libssh2.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,22 @@ jobs:
5858
sudo apt-get update
5959
sudo apt-get install -y build-essential autoconf libtool pkg-config clang libc++-dev python3-impacket
6060
61+
- name: Download libssh2
62+
uses: actions/checkout@v4
63+
with:
64+
repository: libssh2/libssh2
65+
ref: ${{ matrix.libssh2_ref }}
66+
path: libssh2
67+
fetch-depth: 1
68+
6169
- name: Checkout OSP
6270
uses: actions/checkout@v4
6371
with:
6472
repository: wolfssl/osp
6573
path: osp
6674
fetch-depth: 1
67-
68-
- name: Clone libssh2
69-
run: |
70-
git clone --depth=1 --branch ${{ matrix.libssh2_ref }} https://github.com/libssh2/libssh2.git libssh2
71-
72-
- name: Apply patch
73-
working-directory: libssh2
74-
run: |
75+
- run: |
76+
cd libssh2
7577
patch -p1 < $GITHUB_WORKSPACE/osp/wolfProvider/libssh2/${{ matrix.libssh2_ref }}-wolfprov.patch
7678
7779
- name: Build libssh2

0 commit comments

Comments
 (0)