-
Notifications
You must be signed in to change notification settings - Fork 37
65 lines (58 loc) · 1.78 KB
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
- displayTargetName: 'Ubuntu Latest GCC'
artifact: 'virtualjaguar_libretro.so'
os: ubuntu-latest
build_type: 'Release'
cc: 'gcc'
cxx: 'g++'
- displayTargetName: 'macOS Latest Clang'
artifact: 'virtualjaguar_libretro.dylib'
os: macos-latest
build_type: 'Release'
cc: 'clang'
cxx: 'clang++'
# - displayTargetName: 'Windows Latest MinGW'
# artifact: 'virtualjaguar_libretro.so'
# os: windows-latest
# build_type: 'Release'
# cc: 'gcc'
# cxx: 'g++'
name: build-${{matrix.config.os}}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v2
- name: Add Msys64 to PATH
if: matrix.config.os == 'windows-latest'
run: |
echo "/c/msys64/mingw64/bin" >> $GITHUB_PATH
echo "/c/msys64/usr/bin" >> $GITHUB_PATH
shell: bash
- name: make
run: make -j4
# - name: Upload the artifacts
# uses: skx/github-action-publish-binaries@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# args: ${{ matrix.config.artifact }}
- name: upload artifacts
uses: actions/upload-artifact@v2
with:
name: core-${{ matrix.config.os }}
path: ${{ matrix.config.artifact }}
if-no-files-found: error
- name: download artifacts
uses: actions/download-artifact@v2
with:
name: core-${{ matrix.config.os }}