-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (49 loc) · 1.31 KB
/
Copy pathc-cpp.yml
File metadata and controls
61 lines (49 loc) · 1.31 KB
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
name: C/C++ CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
Ubuntu:
runs-on: ubuntu-22.04
strategy:
matrix:
compiler: [g++-12]
target: [lishex]
steps:
- uses: actions/checkout@v3
- name: Create build
run: |
mkdir build
make ${{ matrix.target }} CXX=${{ matrix.compiler }}
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: lishex-linux
path: ./lishex
Windows:
runs-on: windows-2022
strategy:
matrix:
config:
- { system: mingw64, package: x86_64-gcc, compiler: g++ }
target: [lishex]
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.config.system}}
install: mingw-w64-${{matrix.config.package}} make git
- name: Add compiler to $PATH env
shell: bash
run: echo "PATH=$PATH:/c/msys64/${{ matrix.config.system }}/bin" >> $GITHUB_ENV
- name: Create build
shell: msys2 {0}
run: |
mkdir build
make ${{ matrix.target }} CXX=${{ matrix.config.compiler }}
- name: Upload build
uses: actions/upload-artifact@v3
with:
name: lishex-win64
path: ./lishex.exe