Merge pull request #1252 from KatieFrogs/update-actions

Update GitHub Actions to latest versions
This commit is contained in:
bnnm 2022-10-27 22:30:43 +02:00 committed by GitHub
commit d779932607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 43 deletions

View File

@ -15,10 +15,10 @@ jobs:
# cross-platform coverage. # cross-platform coverage.
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
name: CMake, Ubuntu name: CMake, Ubuntu
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Fetch Git tags - name: Fetch Git tags
run: | run: |
@ -27,59 +27,76 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update 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 - name: Create build environment
# Some projects don't allow in-source building, so create a separate build directory # Some projects don't allow in-source building, so create a separate build directory
# We'll use this as our working directory for all subsequent commands # We'll use this as our working directory for all subsequent commands
run: cmake -E make_directory ${{runner.workspace}}/build run: |
cmake -E make_directory ${{runner.workspace}}/build
echo "RELEASE=$(lsb_release -sr)" >> $GITHUB_ENV
- name: Cache celt - name: Cache celt
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/dependencies/celt-0061 ${{runner.workspace}}/dependencies/celt-0061
${{runner.workspace}}/dependencies/celt-0110 ${{runner.workspace}}/dependencies/celt-0110
${{runner.workspace}}/build/dependencies/celt-0061/libcelt/.libs ${{runner.workspace}}/build/dependencies/celt-0061/libcelt/.libs
${{runner.workspace}}/build/dependencies/celt-0110/libcelt/.libs ${{runner.workspace}}/build/dependencies/celt-0110/libcelt/.libs
key: linux-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }} key: linux-${{ env.RELEASE }}-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }}
- name: Cache ffmpeg - name: Cache ffmpeg
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/include ${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/include
${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/lib ${{runner.workspace}}/build/dependencies/ffmpeg/bin/usr/local/lib
key: linux-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }} key: linux-${{ env.RELEASE }}-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }}
- name: Cache atrac9 - name: Cache atrac9
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/LibAtrac9/bin ${{runner.workspace}}/build/dependencies/LibAtrac9/bin
key: linux-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }} key: linux-${{ env.RELEASE }}-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }}
- name: Cache g719 - name: Cache g719
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/libg719_decode/libg719_decode.a ${{runner.workspace}}/build/dependencies/libg719_decode/libg719_decode.a
key: linux-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }} key: linux-${{ env.RELEASE }}-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }}
- name: Cache mpg123 - name: Cache mpg123
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/dependencies/mpg123 ${{runner.workspace}}/dependencies/mpg123
${{runner.workspace}}/build/dependencies/mpg123/src/libmpg123/.libs ${{runner.workspace}}/build/dependencies/mpg123/src/libmpg123/.libs
key: linux-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }} key: linux-${{ env.RELEASE }}-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }}
- name: Cache speex - name: Cache speex
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/build/dependencies/speex/libspeex/.libs ${{runner.workspace}}/build/dependencies/speex/libspeex/.libs
key: linux-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }} 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 - name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable # Use a bash shell so we can use the same syntax for environment variable
@ -98,7 +115,7 @@ jobs:
run: cmake --build . --config $BUILD_TYPE run: cmake --build . --config $BUILD_TYPE
- name: Upload CLI tools artifact - name: Upload CLI tools artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: | path: |
${{runner.workspace}}/build/cli/vgmstream-cli ${{runner.workspace}}/build/cli/vgmstream-cli
@ -106,7 +123,7 @@ jobs:
name: vgmstream-cli name: vgmstream-cli
#- name: Upload Audacious plugin artifact #- name: Upload Audacious plugin artifact
# uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v3
# with: # with:
# path: ${{runner.workspace}}/build/audacious/vgmstream.so # path: ${{runner.workspace}}/build/audacious/vgmstream.so
# name: vgmstream-audacious # name: vgmstream-audacious

View File

@ -11,7 +11,7 @@ jobs:
name: CMake, macOS name: CMake, macOS
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
@ -19,7 +19,7 @@ jobs:
run: brew install autoconf automake cmake ffmpeg jansson libao libvorbis mpg123 run: brew install autoconf automake cmake ffmpeg jansson libao libvorbis mpg123
- name: Cache celt - name: Cache celt
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{ github.workspace }}/dependencies/celt-0061 ${{ github.workspace }}/dependencies/celt-0061
@ -29,13 +29,13 @@ jobs:
key: mac-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }} key: mac-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }}
- name: Cache atrac9 - name: Cache atrac9
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ github.workspace }}/build/dependencies/LibAtrac9/bin path: ${{ github.workspace }}/build/dependencies/LibAtrac9/bin
key: mac-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }} key: mac-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }}
- name: Cache g719 - name: Cache g719
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ${{ github.workspace }}/build/dependencies/libg719_decode/libg719_decode.a path: ${{ github.workspace }}/build/dependencies/libg719_decode/libg719_decode.a
key: mac-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }} key: mac-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }}
@ -47,7 +47,7 @@ jobs:
cmake --build build cmake --build build
- name: Upload CLI tools artifact - name: Upload CLI tools artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: ${{ github.workspace }}/build/cli/vgmstream-cli path: ${{ github.workspace }}/build/cli/vgmstream-cli
name: vgmstream-mac name: vgmstream-mac

View File

@ -7,23 +7,23 @@ on: [push, pull_request, workflow_dispatch]
env: env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release BUILD_TYPE: Release
EM_VERSION: 2.0.29 EM_VERSION: 3.1.24
EM_CACHE_FOLDER: 'emsdk-cache' EM_CACHE_FOLDER: 'emsdk-cache'
jobs: jobs:
build: build:
name: CMake, WebAssembly name: CMake, WebAssembly
runs-on: ubuntu-18.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Fetch Git tags - name: Fetch Git tags
run: | run: |
git fetch --prune --unshallow --tags git fetch --prune --unshallow --tags
- name: Setup emsdk - name: Setup emsdk
uses: mymindstorm/setup-emsdk@v10 uses: mymindstorm/setup-emsdk@v11
with: with:
version: ${{env.EM_VERSION}} version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}} actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
@ -32,7 +32,7 @@ jobs:
run: cmake -E make_directory ${{runner.workspace}}/embuild run: cmake -E make_directory ${{runner.workspace}}/embuild
- name: Cache celt - name: Cache celt
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/dependencies/celt-0061 ${{runner.workspace}}/dependencies/celt-0061
@ -42,7 +42,7 @@ jobs:
key: wasm-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }} key: wasm-celt-${{ hashFiles('cmake/dependencies/celt.cmake') }}
- name: Cache ffmpeg - name: Cache ffmpeg
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/ffmpeg/bin/usr/local/include ${{runner.workspace}}/embuild/dependencies/ffmpeg/bin/usr/local/include
@ -50,28 +50,28 @@ jobs:
key: wasm-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }} key: wasm-ffmpeg-${{ hashFiles('cmake/dependencies/ffmpeg.cmake') }}
- name: Cache jansson - name: Cache jansson
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/jansson/src/.libs ${{runner.workspace}}/embuild/dependencies/jansson/src/.libs
key: wasm-jansson-${{ hashFiles('cmake/dependencies/jansson.cmake') }} key: wasm-jansson-${{ hashFiles('cmake/dependencies/jansson.cmake') }}
- name: Cache atrac9 - name: Cache atrac9
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/LibAtrac9/bin ${{runner.workspace}}/embuild/dependencies/LibAtrac9/bin
key: wasm-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }} key: wasm-atrac9-${{ hashFiles('cmake/dependencies/atrac9.cmake') }}
- name: Cache g719 - name: Cache g719
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/libg719_decode/libg719_decode.a ${{runner.workspace}}/embuild/dependencies/libg719_decode/libg719_decode.a
key: wasm-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }} key: wasm-g719-${{ hashFiles('cmake/dependencies/g719.cmake') }}
- name: Cache mpg123 - name: Cache mpg123
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/dependencies/mpg123 ${{runner.workspace}}/dependencies/mpg123
@ -79,14 +79,14 @@ jobs:
key: wasm-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }} key: wasm-mpg123-${{ hashFiles('cmake/dependencies/mpg123.cmake') }}
- name: Cache speex - name: Cache speex
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/speex/libspeex/.libs ${{runner.workspace}}/embuild/dependencies/speex/libspeex/.libs
key: wasm-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }} key: wasm-speex-${{ hashFiles('cmake/dependencies/speex.cmake') }}
- name: Cache ogg - name: Cache ogg
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/ogg/libogg.a ${{runner.workspace}}/embuild/dependencies/ogg/libogg.a
@ -94,7 +94,7 @@ jobs:
key: wasm-ogg-${{ hashFiles('cmake/dependencies/ogg.cmake') }} key: wasm-ogg-${{ hashFiles('cmake/dependencies/ogg.cmake') }}
- name: Cache vorbis - name: Cache vorbis
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/dependencies/vorbis/lib/*.a ${{runner.workspace}}/embuild/dependencies/vorbis/lib/*.a
@ -111,7 +111,7 @@ jobs:
run: emmake make run: emmake make
- name: Upload WebAssembly artifact - name: Upload WebAssembly artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
path: | path: |
${{runner.workspace}}/embuild/cli/vgmstream-cli.js ${{runner.workspace}}/embuild/cli/vgmstream-cli.js

View File

@ -18,7 +18,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job # Steps represent a sequence of tasks that will be executed as part of the job
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Fetch Git tags - name: Fetch Git tags
shell: cmd shell: cmd
@ -38,25 +38,25 @@ jobs:
run: powershell -ExecutionPolicy Bypass -NoProfile -File .\msvc-build.ps1 PackageTmp run: powershell -ExecutionPolicy Bypass -NoProfile -File .\msvc-build.ps1 PackageTmp
- name: Upload foobar2000 component artifact - name: Upload foobar2000 component artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: foo_input_vgmstream.fb2k-component name: foo_input_vgmstream.fb2k-component
path: ${{github.workspace}}\tmp\fb2k path: ${{github.workspace}}\tmp\fb2k
- name: Upload CLI tools artifact - name: Upload CLI tools artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: vgmstream-win name: vgmstream-win
path: ${{github.workspace}}\tmp\cli path: ${{github.workspace}}\tmp\cli
- name: Upload foobar2000 component debug symbols artifact - name: Upload foobar2000 component debug symbols artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: foo_input_vgmstream.pdb name: foo_input_vgmstream.pdb
path: ${{github.workspace}}\tmp\fb2k-p path: ${{github.workspace}}\tmp\fb2k-p
- name: Upload CLI tools debug symbols artifact - name: Upload CLI tools debug symbols artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: vgmstream-win.pdb name: vgmstream-win.pdb
path: ${{github.workspace}}\tmp\cli-p path: ${{github.workspace}}\tmp\cli-p

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) # 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 libmpg123-dev libvorbis-dev libspeex-dev
sudo apt-get install -y libavformat-dev libavcodec-dev libavutil-dev libswresample-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 # optional: for vgmstream 123 and audacious
sudo apt-get install -y libao-dev audacious-dev sudo apt-get install -y libao-dev audacious-dev