mirror of https://github.com/nu774/fdkaac.git
Compare commits
1 Commits
1686009cbc
...
4f35b8ad7c
Author | SHA1 | Date |
---|---|---|
nu774 | 4f35b8ad7c |
|
@ -17,25 +17,31 @@ jobs:
|
|||
make
|
||||
|
||||
mingw-cross:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [i686, x86_64]
|
||||
include:
|
||||
- arch: i686
|
||||
os: mingw32
|
||||
- arch: x86_64
|
||||
os: mingw64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install cross compiler
|
||||
run: |
|
||||
sudo apt-get install g++-mingw-w64-x86-64
|
||||
- name: Checkout libfdk-aac
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: mstorsjo/fdk-aac
|
||||
- name: Build libfdk-aac
|
||||
ARCH=${{ matrix.arch }}
|
||||
sudo apt-get install g++-mingw-w64-${ARCH//_/-}
|
||||
- name: Install libfdk-aac binary from repo.msys.org
|
||||
run: |
|
||||
./autogen.sh
|
||||
./configure --host=x86_64-w64-mingw32 --prefix=/usr/x86_64-w64-mingw32
|
||||
make
|
||||
sudo make install
|
||||
wget https://repo.msys2.org/mingw/${{ matrix.os }}/${{ matrix.os }}.db.tar.zst
|
||||
DESCFILE=$(tar xvf ${{ matrix.os }}.db.tar.zst --wildcards '*-fdk-aac*/desc')
|
||||
PKGFILE=$(sed -n '/%FILENAME%/{n;p;q}' $DESCFILE)
|
||||
wget https://repo.msys2.org/mingw/${{ matrix.os }}/${PKGFILE}
|
||||
sudo tar xvf ${PKGFILE} -C /usr/${{ matrix.arch }}-w64-mingw32 --strip-component=1
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Build
|
||||
run: |
|
||||
autoreconf -fiv
|
||||
./configure --host=x86_64-w64-mingw32
|
||||
./configure --host=${{ matrix.arch }}-w64-mingw32
|
||||
make
|
||||
|
|
Loading…
Reference in New Issue