-
Notifications
You must be signed in to change notification settings - Fork 16
84 lines (68 loc) · 2.02 KB
/
cmake.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
72
73
74
75
76
77
78
79
80
81
82
83
84
name: CI build
on:
pull_request:
branches: [ main ]
workflow_dispatch:
workflow_call:
# cancel older, redundant runs of same workflow on same branch
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
name: build ${{ matrix.preset }}
env: {}
strategy:
fail-fast: false
matrix:
include:
- os: macOS-11
name: macOS x86_64
preset: macOS-x64
- os: macOS-11
name: macOS arm64
preset: macOS-arm64
- os: windows-latest
name: Windows x86_64
preset: windows-x64-mingw
- os: windows-latest
name: Windows arm64
preset: windows-arm64-vs2022
- os: ubuntu-20.04
container: openziti/ziti-builder:1.0.7
name: Linux x86_64
preset: linux-x64
- os: ubuntu-20.04
container: openziti/ziti-builder:1.0.7
name: Linux arm
preset: linux-arm
- os: ubuntu-20.04
container: openziti/ziti-builder:1.0.7
name: Linux arm64
preset: linux-arm64
steps:
- name: Debug action
uses: hmarr/[email protected]
- name: checkout workspace
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run CMake Composite Action
uses: ./.github/actions/build
with:
preset: ${{ matrix.preset }}
target: bundle
- name: list bundle artifacts
run: ls -R
working-directory: ./build/bundle/
- name: list program artifacts
run: ls -R
working-directory: ./build/programs/ziti-edge-tunnel/
- name: upload bundle artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.preset }}
path: ./build/bundle/ziti-edge-tunnel-*.zip
if-no-files-found: error