-
Notifications
You must be signed in to change notification settings - Fork 65
128 lines (122 loc) · 3.72 KB
/
ccpp.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: C/C++ CI
on:
pull_request:
push:
env:
PYTHONUTF8: 1
jobs:
build-ubuntu:
runs-on: ubuntu-20.04
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: install
run: sudo apt-get install fuse libfuse-dev
- name: vcpkg build
id: vcpkg
uses: johnwason/vcpkg-action@v6
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-linux
token: ${{ github.token }}
github-binarycache: true
- name: build-test
run: python3 build.py --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --build_root=./build --build_type Debug
- name: upload
uses: actions/upload-artifact@v1
with:
path: build/securefs
name: securefs-linux-amd64
build-mac:
runs-on: macos-12
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: pip
run: pip install xattr
- name: install
run: brew install macfuse
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-osx
token: ${{ github.token }}
cache-key: macos-12-x64
github-binarycache: true
- name: build
run: python3 build.py --enable_unit_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-osx --build_root=./build --build_type Debug
- name: upload
uses: actions/upload-artifact@v1
with:
path: build/securefs
name: securefs-macos-amd64
build-mac-arm64:
runs-on: macos-12
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: pip
run: pip install xattr
- name: install
run: brew install macfuse
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
manifest-dir: ${{ github.workspace }}
triplet: arm64-osx
token: ${{ github.token }}
cache-key: macos-12-arm64
github-binarycache: true
- name: build
run: python3 build.py --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=arm64-osx --build_root=./build --cmake_defines CMAKE_OSX_ARCHITECTURES=arm64 --build_type Debug
- name: upload
uses: actions/upload-artifact@v1
with:
path: build/securefs
name: securefs-macos-arm64
build-windows:
runs-on: windows-2019
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: install
run: choco install winfsp
- name: vcpkg build
uses: johnwason/vcpkg-action@v6
id: vcpkg
with:
manifest-dir: ${{ github.workspace }}
triplet: x64-windows-static-md
token: ${{ github.token }}
cache-key: windows-latest
github-binarycache: true
- name: build-test
run: python3 build.py --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-windows-static-md --build_root=./build --build_type Debug
- name: upload
uses: actions/upload-artifact@v1
with:
path: build/Debug/securefs.exe
name: securefs-windows-amd64