Skip to content

Commit

Permalink
Merge pull request #1 from rokoucha/feat/support_windows
Browse files Browse the repository at this point in the history
feat: Support Windows
  • Loading branch information
ci7lus authored Jul 12, 2021
2 parents 98a44d2 + 469202d commit 7443df8
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,51 @@ jobs:
with:
name: mac-build-image
path: build/*.dmg

build-windows:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
repository: "videolan/vlc-3.0"
ref: 41878ff4f2a4b566cf0a1bd15f72037b2be98a18 # 3.0.14
- uses: actions/checkout@v2
with:
path: vlc-build
- name: Install build tools
run: |
sudo apt-get update -y
sudo apt-get install \
gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools \
lua5.2 libtool automake autoconf autopoint make gettext pkg-config \
wine64-development-tools libwine-dev \
gperf
sudo ln -sf /usr/include/wine/wine/* /usr/include/wine
- name: Prepare
run: |
patch -p1 < vlc-build/patches/build.sh.patch
patch -p1 < vlc-build/patches/aribsub.c.patch
patch -p1 < vlc-build/patches/mpegts.c.patch
patch -p1 < vlc-build/patches/configure.ac.patch
mkdir build
- name: Build
run: |
../extras/package/win32/build.sh -z
working-directory: ./build
- name: Packaging
run: |
make package-win32-zip
working-directory: ./build/win64
- name: Check
run: ls -la
working-directory: ./build/win64
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: windows-build
path: |
build/win64/vlc-3.0.14/*.txt
build/win64/vlc-3.0.14/libvlc.dll
build/win64/vlc-3.0.14/libvlccore.dll
build/win64/vlc-3.0.14/plugins
2 changes: 1 addition & 1 deletion patches/configure.ac.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ index cc2037594b2c..f73e55e97ed1 100644
VERSION_REVISION=14
-VERSION_EXTRA=0
-VERSION_DEV=
+VERSION_EXTRA=miraktest
+VERSION_EXTRA=999
+VERSION_DEV=1

PKGDIR="vlc"
Expand Down

0 comments on commit 7443df8

Please sign in to comment.