-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (54 loc) · 1.29 KB
/
examples.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
name: examples
on:
push:
branches:
- main
- dev
paths-ignore:
- .gitignore
- CLA.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- cpu-features.md
- LICENSE
- LICENSE-APACHE
- README.md
workflow_dispatch:
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cmake:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
# - windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Ubuntu
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install ninja-build
- name: Setup macOS
if: matrix.os == 'macos-latest'
run: brew install ninja
- name: Setup Windows - MSVC
if: ${{ matrix.os == 'windows-latest' }}
uses: ilammy/msvc-dev-cmd@7315a94840631165970262a99c72cfb48a65d25d
with:
arch: x64
- name: Setup Windows - Ninja
if: ${{ matrix.os == 'windows-latest' }}
run: choco install ninja
- name: Blake2 Example
working-directory: examples/cmake
run: |
mkdir build
cd build
cmake ..
cmake --build .
./example