-
Notifications
You must be signed in to change notification settings - Fork 16
139 lines (121 loc) · 3.85 KB
/
macports.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: macports
on:
workflow_dispatch:
env:
CC: clang
CXX: clang++
CPATH: /opt/local/include
LIBRARY_PATH: /opt/local/lib
CFLAGS: -g -O2 -Wno-deprecated-declarations
CROSSCFLAGS: -g -O2
LDFLAGS: -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.15
WINE_CONFIGURE: $GITHUB_WORKSPACE/sources/wine/configure
BUILDROOT: $GITHUB_WORKSPACE/build
WINE_INSTALLROOT: install
jobs:
wine-crossover:
strategy:
fail-fast: false
matrix:
CROSS_OVER_VERSION: [23.7.1] # 23.7.0, 23.6.0, 23.5.0, 23.0.1, 23.0.0
runs-on: macos-latest
env:
CROSS_OVER_SOURCE_URL: https://media.codeweavers.com/pub/crossover/source/crossover-sources-${{ matrix.CROSS_OVER_VERSION }}.tar.gz
CROSS_OVER_LOCAL_FILE: crossover-sources-${{ matrix.CROSS_OVER_VERSION }}
WINE_INSTALLATION: wine-cx-${{ matrix.CROSS_OVER_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bootstrap MacPorts
run: . .github/workflows/bootstrap.sh
- name: Adding MacPorts into $PATH
run: |
set -eu
echo "/opt/local/bin" >> $GITHUB_PATH
echo "/opt/local/sbin" >> $GITHUB_PATH
- name: Install build dependencies
run: |
/usr/bin/env arch -x86_64 sudo port install \
bison \
gettext \
mingw-w64 \
pkgconfig
- name: Install runtime dependencies
run: |
/usr/bin/env arch -x86_64 sudo port install \
freetype \
gettext-runtime \
gnutls \
gstreamer1 \
gstreamer1-gst-plugins-base \
libinotify \
moltenvk \
libsdl2
- name: Download Crossover Sources
run: |
curl -o ${{ env.CROSS_OVER_LOCAL_FILE }}.tar.gz ${{ env.CROSS_OVER_SOURCE_URL }}
- name: Extract Crossover Sources
run: |
tar xf ${{ env.CROSS_OVER_LOCAL_FILE }}.tar.gz
- name: Add distversion.h
run: |
cp distversion.h sources/wine/programs/winedbg/distversion.h
- name: Configure wine
run: |
mkdir -p ${{ env.BUILDROOT }}/wine64
pushd ${{ env.BUILDROOT }}/wine64
${{ env.WINE_CONFIGURE }} \
--prefix= \
--disable-tests \
--enable-win64 \
--without-alsa \
--without-capi \
--with-coreaudio \
--with-cups \
--without-dbus \
--without-fontconfig \
--with-freetype \
--with-gettext \
--without-gettextpo \
--without-gphoto \
--with-gnutls \
--without-gssapi \
--with-gstreamer \
--with-inotify \
--without-krb5 \
--with-mingw \
--without-netapi \
--with-opencl \
--with-opengl \
--without-oss \
--with-pcap \
--with-pthread \
--without-pulse \
--without-sane \
--with-sdl \
--without-udev \
--with-unwind \
--without-usb \
--without-v4l2 \
--with-vulkan \
--without-x
popd
- name: Build wine
run: |
pushd ${{ env.BUILDROOT }}/wine64
make -j$(sysctl -n hw.ncpu 2>/dev/null)
popd
- name: Install wine
run: |
pushd ${{ env.BUILDROOT }}/wine64
make install-lib DESTDIR="$GITHUB_WORKSPACE/${{ env.WINE_INSTALLROOT }}"
popd
- name: Tar wine
run: |
tar -czvf ${{ env.WINE_INSTALLATION }}.tar.gz ${{ env.WINE_INSTALLROOT }}
- name: Uploading wine
uses: actions/upload-artifact@v4
with:
name: ${{ env.WINE_INSTALLATION }}
path: ${{ env.WINE_INSTALLATION }}.tar.gz