-
-
Notifications
You must be signed in to change notification settings - Fork 48
88 lines (79 loc) · 2.03 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Libretro Builds
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
- name: Install build tools
run: pacman -S mingw-w64-x86_64-{gcc,pkg-config} make --noconfirm
shell: msys2 {0}
- name: Compile
run: |
make libretro -j$(nproc)
shell: msys2 {0}
working-directory: ${{ github.workspace }}
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-windows
path: |
noods_libretro.dll
noods_libretro.info
build-mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
make libretro -j$(sysctl -n hw.logicalcpu)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-mac
path: |
noods_libretro.dylib
noods_libretro.info
build-linux:
runs-on: ubuntu-latest
steps:
- name: Install build tools
run: |
sudo apt update
sudo apt install gcc -y
- name: Checkout
uses: actions/checkout@v1
- name: Compile
run: |
git config --global protocol.file.allow always
make libretro -j$(nproc)
- name: Upload
uses: actions/upload-artifact@v2
with:
name: noods-libretro-linux
path: |
noods_libretro.so
noods_libretro.info
update-release:
runs-on: ubuntu-latest
needs: [build-windows, build-mac, build-linux]
steps:
- name: Get artifacts
uses: actions/download-artifact@v2
- name: Package artifacts
run: for i in ./*; do zip -r -j ${i}.zip $i; done
- name: Upload release
uses: svenstaro/upload-release-action@v2
file_glob: true
file: *.zip
tag: release
body: Automatically generated builds
overwrite: true