Skip to content

Commit f290445

Browse files
committed
attempt to use git clone
1 parent 373a8b9 commit f290445

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/wine.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
run: |
1414
sudo apt update -y
1515
sudo apt install \
16+
git \
1617
build-essential \
1718
curl \
1819
mingw-w64 \
@@ -52,22 +53,19 @@ jobs:
5253

5354
- name: 'Fetch Wine'
5455
run: |
55-
mkdir -p ${{ env.wine_dest }} wine
56-
curl -fL https://dl.winehq.org/wine/source/9.x/wine-9.2.tar.xz | \
57-
tar --strip-components=1 -xJf - -C wine
56+
mkdir -p ${{ env.wine_dest }}
57+
git clone https://gitlab.winehq.org/wine/wine --depth 1 --branch wine-9.2
5858
5959
- name: 'Apply Wine Staging patchset'
6060
run: |
61-
mkdir -p wine-staging
62-
curl -fL https://github.com/wine-staging/wine-staging/archive/refs/tags/v9.2.tar.gz | \
63-
tar --strip-components=1 -xzf - -C wine-staging
61+
git clone https://gitlab.winehq.org/wine/wine-staging.git --branch v9.2
6462
wine-staging/staging/patchinstall.py --destdir=wine --all
6563
- name: 'Apply local patches'
6664
working-directory: wine
6765
run: |
6866
for p in ../*.patch; do
6967
echo $p
70-
patch -p1 < $p
68+
git apply --verbose $p
7169
done
7270
7371
- name: 'Configure Wine'

0 commit comments

Comments
 (0)