forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (30 loc) · 1.05 KB
/
libretro.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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