-
Notifications
You must be signed in to change notification settings - Fork 92
71 lines (62 loc) · 2.65 KB
/
default.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
66
67
68
69
70
71
name: XCPlite Default
on:
workflow_dispatch:
push:
branches: ["**"]
tags: ["**"]
concurrency:
group: ${{ (github.ref == 'refs/heads/master') && 'master' || format('{0}-{1}', github.workflow, github.ref) }} # concurrency does not include master branch
cancel-in-progress: true
jobs:
#####################################################################################################################
# #
# Build on Linux #
# #
#####################################################################################################################
build_on_linux:
runs-on: [ubuntu-22.04]
name: Build on Linux
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Build Tools
run: |
sudo apt-get install cmake g++ clang ninja-build
- name: Build XCPlite
run: |
cd C_Demo
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
cd build
make
- name: C_Demo - Provide Build Artifacts (Linux)
uses: actions/upload-artifact@v4
if: always()
with:
name: C_Demo build artifacts (Linux)
path: ./C_Demo/build/*.*
#####################################################################################################################
# #
# Build on Mac #
# #
#####################################################################################################################
build_on_mac:
runs-on: [macos-13]
name: Build on Mac
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Build Tools
run:
brew install cmake gcc
- name: Build XCPlite
run: |
cd C_Demo
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
cd build
make
- name: C_Demo - Provide Build Artifacts (MacOS)
uses: actions/upload-artifact@v4
if: always()
with:
name: C_Demo build artifacts (MacOS)
path: ./C_Demo/build/*.*