separate files
This commit is contained in:
41
.github/workflows/libmp3lame.yml
vendored
Normal file
41
.github/workflows/libmp3lame.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
name: libmp3lame
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
env:
|
||||
type: string
|
||||
required: true
|
||||
default: 'windows-2022'
|
||||
description: 'Environment'
|
||||
|
||||
config:
|
||||
type: string
|
||||
required: true
|
||||
default: 'debug'
|
||||
description: 'Configuration'
|
||||
|
||||
env:
|
||||
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
|
||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||
|
||||
jobs:
|
||||
libmp3lame:
|
||||
runs-on: ${{ inputs.env }}
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
uses: msys2/setup-msys2@v2
|
||||
with:
|
||||
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn
|
||||
path-type: inherit
|
||||
- name: Build LAME
|
||||
shell: cmd
|
||||
run: |
|
||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||
md build dist
|
||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/trunk/lame@6474 lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz *
|
||||
- name: Publish artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: libmp3lame-${{ inputs.env }}-${{ inputs.config }}
|
||||
path: dist/libmp3lame.tgz
|
Reference in New Issue
Block a user