File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments