Libretro: Cosmetic improvements and a minor version bump. #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Libretro cores | |
on: | |
push: | |
paths: 'src/libretro/**' | |
pull_request: | |
paths: 'src/libretro/**' | |
jobs: | |
libretro: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: build linux & win32 cores | |
run: | | |
sudo apt-get update && sudo apt-get install -y mingw-w64 | |
cd src/libretro && make | |
find . -name "*.o" -delete | |
platform=win CC=x86_64-w64-mingw32-gcc CPP=x86_64-w64-mingw32-g++ CXX=x86_64-w64-mingw32-g++ make | |
- name: Compute commit short SHA | |
id: shortsha | |
run: | | |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
echo "branch=$(echo ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}})" >> "$GITHUB_ENV" | |
echo "Branch: ${{ env.branch }}" | |
echo "Sha: ${{ env.sha_short }}" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: freej2me_libretro-${{ env.branch }}-${{ env.sha_short }} | |
path: | | |
src/libretro/freej2me_libretro.so | |
src/libretro/freej2me_libretro.dll |