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

Update build-linux.yml #24

Update build-linux.yml

Update build-linux.yml #24

Workflow file for this run

name: Build [Linux]
on:
push:
branches: [ "main", "test" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Download libzmq
run: wget https://github.com/zeromq/libzmq/releases/download/v4.3.5/zeromq-4.3.5.tar.gz
- name: Extract libzmq
run: tar -xf ./zeromq-4.3.5.tar.gz
- name: Configure libzmq
working-directory: zeromq-4.3.5
run: ./configure --enable-drafts --enable-static --disable-shared --disable-libbsd --prefix=${{ github.workspace }}/src/nativeInterop/
- name: Compile libzmq
working-directory: zeromq-4.3.5
run: make -j$(nproc) && make install
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libappindicator3-dev libcurl4-openssl-dev libass-dev libavcodec-dev
version: 1.0
- name: Download libmpv-dev_0.35.1
run: wget http://mirrors.kernel.org/ubuntu/pool/universe/m/mpv/libmpv-dev_0.35.1-2ubuntu1_amd64.deb -O libmpv-dev.deb
- name: Install libmpv-dev_0.35.1
run: dpkg-deb -R ./libmpv-dev.deb /
- name: test
run: ls /usr/lib/x86_64-linux-gnu/ | grep mpv
- name: Grant execute permission for gradlew
run: chmod +x gradle
- name: Build native binaries
run: ./gradlew nativeBinaries -PlinkStatic
- name: Strip release binary
run: strip build/bin/native/releaseExecutable/spmp-server.kexe
- name: Upload debug binary
uses: actions/upload-artifact@v3
with:
name: spms-linux-debug.kexe
path: build/bin/native/debugExecutable/spmp-server.kexe
- name: Upload release binary
uses: actions/upload-artifact@v3
with:
name: spms-linux-release.kexe
path: build/bin/native/releaseExecutable/spmp-server.kexe