Skip to content

Automatically build libogg, libtheora, libvorbis, libvorbisfile #3

Automatically build libogg, libtheora, libvorbis, libvorbisfile

Automatically build libogg, libtheora, libvorbis, libvorbisfile #3

Workflow file for this run

name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: ${{ matrix.configuration }} ${{ matrix.platform }}
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
configuration:
- Debug
- Mixed
- Release
- Release Master Gold
platform: [x64, x86, ARM, ARM64]
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- uses: microsoft/setup-msbuild@main
- name: Build
run: msbuild /m /p:Configuration="${{ matrix.configuration }}" /p:Platform="${{ matrix.platform }}" dependencies.sln
- name: Upload artifacts
uses: actions/upload-artifact@main
with:
name: xray-16-dependencies ${{ matrix.configuration }} ${{ matrix.platform }} (github-${{ github.run_number }})
path: |
ogg/include/**/*.h
theora/include/**/*.h
vorbis/include/**/*.h
bin/**/*.dll
bin/**/*.lib
bin/**/*.pdb
pack-everything:
name: Pack everything into one archive
needs: build
runs-on: windows-latest
steps:
- name: Download everything from previous jobs
uses: actions/download-artifact@v4
- name: Unify folders
shell: cmd
run: |
for /d /r %%D in ("xray-16-dependencies*") do (
echo Moving contents of %%D to the parent directory...
rem Copy all files and directories recursively
xcopy "%%D\*" "${{ github.workspace }}" /E /I /K /Y
rem Delete original directory
rd /s /q "%%D"
)
- name: Show files we have
run: Get-ChildItem -Recurse
- name: Upload unified artifact
uses: actions/upload-artifact@main
with:
name: xray-16-dependencies (github-${{ github.run_number }})
path: "*"
compression-level: 9
# XXX: to be uploaded as a release, not artifact
#- name: Pack shipping archive
# run: |
# 7z a xray-16-dependencies.zip * -xr!*.pdb
# 7z a "xray-16-dependencies Symbols.zip" bin\*.pdb