Skip to content

Commit 5c36463

Browse files
committed
Create c-cpp.yml
Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml Update c-cpp.yml
1 parent 3fd8160 commit 5c36463

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
config:
15+
- displayTargetName: 'Windows Latest MinGW'
16+
artifact: 'virtualjaguar_libretro.so'
17+
os: windows-latest
18+
build_type: 'Release'
19+
cc: 'gcc'
20+
cxx: 'g++'
21+
- displayTargetName: 'Ubuntu Latest GCC'
22+
artifact: 'virtualjaguar_libretro.so'
23+
os: ubuntu-latest
24+
build_type: 'Release'
25+
cc: 'gcc'
26+
cxx: 'g++'
27+
- displayTargetName: 'macOS Latest Clang'
28+
artifact: 'virtualjaguar_libretro.dylib'
29+
os: macos-latest
30+
build_type: 'Release'
31+
cc: 'clang'
32+
cxx: 'clang++'
33+
34+
name: build-${{matrix.config.os}}
35+
runs-on: ${{ matrix.config.os }}
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Add Msys64 to PATH
40+
if: matrix.config.os == 'windows-latest'
41+
run: |
42+
echo "/c/msys64/mingw64/bin" >> $GITHUB_PATH
43+
echo "/c/msys64/usr/bin" >> $GITHUB_PATH
44+
shell: bash
45+
- name: make
46+
run: make -j4
47+
48+
# - name: Upload the artifacts
49+
# uses: skx/github-action-publish-binaries@master
50+
# env:
51+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
# with:
53+
# args: ${{ matrix.config.artifact }}
54+
55+
- name: upload artifacts
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: core-${{ matrix.config.os }}
59+
path: ${{ matrix.config.artifact }}
60+
if-no-files-found: error
61+
62+
- name: download artifacts
63+
uses: actions/download-artifact@v2
64+
with:
65+
name: core-${{ matrix.config.os }}

0 commit comments

Comments
 (0)