Skip to content

build opusenc on linux #59

build opusenc on linux

build opusenc on linux #59

Workflow file for this run

name: generate-builds
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libsdl2-dev libzip-dev libogg-dev libvorbis-dev libopus-dev libopusfile-dev opus-tools libtinyxml2-dev zipcmp zipmerge ziptool
- name: Checkout libopusenc
uses: actions/checkout@v3

Check failure on line 20 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 20
- name: Build libopusenc from source
run: |
git clone https://gitlab.xiph.org/xiph/libopusenc.git
cd libopusenc
./autogen.sh
./configure
make -j 10
sudo make install
sudo ldconfig
- name: Build
run: |
cmake -S. -Bbuild-rel -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build-rel --config Release -j3
(cd build-rel && cpack -G External)
mv build-rel/*.appimage future.appimage
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: future-linux
path: |
future.appimage
build-linux-legacy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libsdl2-dev libzip-dev libogg-dev libvorbis-dev libopus-dev libopusfile-dev opus-tools libtinyxml2-dev zipcmp zipmerge ziptool
- name: Checkout libopusenc
uses: actions/checkout@v3
- name: Build libopusenc from source
run: |
git clone https://gitlab.xiph.org/xiph/libopusenc.git
cd libopusenc
./autogen.sh
./configure
make -j 10
sudo make install
sudo ldconfig
- name: Build
run: |
cmake -S. -Bbuild-rel -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build-rel --config Release -j3
(cd build-rel && cpack -G External)
mv build-rel/*.appimage future.appimage
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: future-linux-legacy
path: |
future.appimage
build-windows-x64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
cmake -S . -B build-windows -DCMAKE_BUILD_TYPE:STRING=Release -A x64
cmake --build build-windows --config Release --parallel 10
mkdir future-windows-x64
cd future-windows-x64
cp ..\build-windows\Release\future.exe .\future.exe
cp -r ..\build-windows\assets .\assets
- name: Upload
uses: actions/upload-artifact@v4
with:
name: future-windows-x64
path: future-windows-x64
build-windows-arm64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: |
cmake -S . -B build-windows -DCMAKE_BUILD_TYPE:STRING=Release -A arm64
cmake --build build-windows --config Release --parallel 10
mkdir future-windows-arm64
cd future-windows-arm64
cp ..\build-windows\Release\future.exe .\future.exe
cp -r ..\build-windows\assets .\assets
- name: Upload
uses: actions/upload-artifact@v4
with:
name: future-windows-arm64
path: future-windows-arm64