Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Increase Kotlin Multiplatform version to 1.9.23 #43

Increase Kotlin Multiplatform version to 1.9.23

Increase Kotlin Multiplatform version to 1.9.23 #43

name: Build [Windows x86_64]
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build libzmq and libcurl
uses: johnwason/vcpkg-action@v6
with:
pkgs: zeromq[draft] curl
triplet: x64-windows
token: ${{ github.token }}
github-binarycache: true
- name: Copy built files
run: xcopy /s /i /y "${{ github.workspace }}\vcpkg\installed\x64-windows\*" "${{ github.workspace }}\src\nativeInterop\windows-x86_64"
- name: Download 7-Zip
run: curl https://www.7-zip.org/a/7z2301-x64.exe --output 7z-installer.exe
- name: Extract 7-Zip
run: .\7z-installer.exe /S /D="${{ github.workspace }}\7zip"
- name: Download mpv
run: curl -L https://downloads.sourceforge.net/project/mpv-player-windows/libmpv/mpv-dev-x86_64-20240114-git-bd35dc8.7z --output mpv.7z
- name: Extract mpv
run: 7zip\7z.exe x mpv.7z -osrc\nativeInterop\windows-x86_64
- name: Move libmpv.dll.a
run: move src\nativeInterop\windows-x86_64\libmpv.dll.a src\nativeInterop\windows-x86_64\lib\libmpv.dll.a
- name: Move libmpv-2.dll
run: move src\nativeInterop\windows-x86_64\libmpv-2.dll src\nativeInterop\windows-x86_64\bin\libmpv-2.dll
- name: Set up Gradle
uses: gradle/gradle-build-action@v3
- name: Build windows-x86_64 binaries
run: .\gradlew.bat windows-x86_64BinariesStatic
- name: Upload debug binary
uses: actions/upload-artifact@v3
with:
name: spms-windows-x86_64-debug
path: build\bin\windows-x86_64\debugExecutable\*.exe
- name: Upload release binary
uses: actions/upload-artifact@v3
with:
name: spms-windows-x86_64-release
path: build\bin\windows-x86_64\releaseExecutable\*.exe
# - name: Upload DLL dependencies
# uses: actions/upload-artifact@v3
# with:
# name: dependencies
# path: build\bin\windows-x86_64\releaseExecutable\*.dll