-
Notifications
You must be signed in to change notification settings - Fork 23
64 lines (58 loc) · 1.59 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
name: C/C++ CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Make binaries
run: make
- name: Prepare Artifacts
run: mkdir artifact && mv pspdecrypt artifact/. && cp Readme.md artifact/.
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: linux-binaries
path: artifact
build-windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
install: >-
base-devel
git
mingw-w64-x86_64-clang
mingw-w64-x86_64-openssl
- uses: actions/checkout@v2
- name: Makes Binaries
run: make EXTRA_FLAG=-static
- name: Prepare Artifacts
run: mkdir artifact && mv pspdecrypt artifact/. && cp Readme.md artifact/.
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: windows-binaries
path: artifact
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Make binaries
run: |
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
make CXX='clang++ -std=c++11'
- name: Prepare Artifacts
run: mkdir artifact && mv pspdecrypt artifact/. && cp Readme.md artifact/.
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: macos-binaries
path: artifact