Actions: Build vorbis instead of using apt

- Add required Ubuntu packages to the build doc
This commit is contained in:
KatieFrogs 2022-10-24 18:41:58 +02:00
parent 2fbe627c84
commit fcca621e09
2 changed files with 17 additions and 2 deletions

View File

@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libvorbis-dev libjansson-dev yasm libopus-dev
sudo apt-get install -y libjansson-dev yasm libopus-dev
- name: Create build environment
# Some projects don't allow in-source building, so create a separate build directory
@ -83,6 +83,21 @@ jobs:
${{runner.workspace}}/build/dependencies/speex/libspeex/.libs
key: linux-${{ env.RELEASE }}-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }}
- name: Cache ogg
uses: actions/cache@v3
with:
path: |
${{runner.workspace}}/build/dependencies/ogg/libogg.a
${{runner.workspace}}/build/dependencies/ogg/include
key: linux-${{ env.RELEASE }}-ogg-${{ hashFiles('cmake/dependencies/ogg.cmake') }}
- name: Cache vorbis
uses: actions/cache@v3
with:
path: |
${{runner.workspace}}/build/dependencies/vorbis/lib/*.a
key: linux-${{ env.RELEASE }}-vorbis-${{ hashFiles('cmake/dependencies/vorbis.cmake') }}
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system

View File

@ -27,7 +27,7 @@ sudo apt-get install -y gcc g++ make cmake build-essential git
# optional: for extra formats (can be ommited to build with static libs)
sudo apt-get install -y libmpg123-dev libvorbis-dev libspeex-dev
sudo apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswresample-dev
sudo apt-get install -y yasm libopus-dev
sudo apt-get install -y yasm libopus-dev pkg-config autoconf libtool-bin
# optional: for vgmstream 123 and audacious
sudo apt-get install -y libao-dev audacious-dev