-
Notifications
You must be signed in to change notification settings - Fork 4
131 lines (98 loc) · 4.42 KB
/
Copy pathtests.yml
File metadata and controls
131 lines (98 loc) · 4.42 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
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
129
130
131
name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }} @ ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
cmake-build:
name: ${{ matrix.platform.name }} ${{ matrix.config.build_type }}
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- { name: Windows VS2022 (x64) - AES-NI, aes: aesni, os: windows-2022, extension: .exe, }
- { name: Windows VS2025 (x64) - AES-NI, aes: aesni, os: windows-2025, extension: .exe, }
- { name: Windows VS2022 (x64) - Portable, aes: portable, os: windows-2022, extension: .exe, }
- { name: Windows VS2025 (x64) - Portable, aes: portable, os: windows-2025, extension: .exe, }
- { name: Windows 11 (arm64) - AES-NEON, aes: neon, os: windows-11-arm, extension: .exe, }
- { name: Windows 11 (arm64) - Portable, aes: portable, os: windows-11-arm, extension: .exe, }
- { name: Ubuntu (x64) 2022 - AES-NI, aes: aesni, os: ubuntu-22.04 }
- { name: Ubuntu (x64) 2024 - AES-NI, aes: aesni, os: ubuntu-24.04 }
- { name: Ubuntu (x64) 2022 - Portable, aes: portable, os: ubuntu-22.04 }
- { name: Ubuntu (x64) 2024 - Portable, aes: portable, os: ubuntu-24.04 }
- { name: Ubuntu (arm64) 2022 - AES-NEON, aes: neon, os: ubuntu-22.04-arm }
- { name: Ubuntu (arm64) 2024 - AES-NEON, aes: neon, os: ubuntu-24.04-arm }
- { name: Ubuntu (arm64) 2022 - Portable, aes: portable, os: ubuntu-22.04-arm }
- { name: Ubuntu (arm64) 2024 - Portable, aes: portable, os: ubuntu-24.04-arm }
- { name: MacOS 13 (Intel) - AES-NI, aes: aesni, os: macos-13 }
- { name: MacOS 14 (arm64) - AES-NEON, aes: neon, os: macos-14 }
- { name: MacOS 15 (arm64) - AES-NEON, aes: neon, os: macos-15 }
- { name: MacOS 13 (arm64) - Portable, aes: portable, os: macos-13 }
- { name: MacOS 14 (arm64) - Portable, aes: portable, os: macos-14 }
- { name: MacOS 15 (arm64) - Portable, aes: portable, os: macos-15 }
config:
- { build_type: Debug }
- { build_type: Release }
steps:
- uses: actions/checkout@v4
- run: cmake --version
- name: Configure
run: cmake -S . -B . -D AES_IMPL=${{matrix.platform.aes}} -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
- name: Build
run: cmake --build . --config ${{ matrix.config.build_type }}
- name: Run Tests (Linux)
if: runner.os == 'Linux'
run: ./tests
- name: Run Tests (MacOS)
if: runner.os == 'macOS'
run: ./tests
- name: Run Tests (Windows)
if: runner.os == 'Windows'
run: ${{ matrix.config.build_type }}\tests${{matrix.platform.extension}}
aarch64-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: update and upgrade env
run: sudo apt-get update && sudo apt-get upgrade
- name: Install essentials
run: sudo apt-get install qemu-user qemu-user-static gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binutils-aarch64-linux-gnu binutils-aarch64-linux-gnu-dbg build-essential
- name: create test output directory
run: mkdir bin
- name: Test - portable C++ code
run: make test CXX=aarch64-linux-gnu-g++ LINK=static TYPE=debug VERSION=portable
- name: Test - aarch64/armv8 - ARM-NEON-AES
run: make test CXX=aarch64-linux-gnu-g++ LINK=static TYPE=debug VERSION=neon
clang:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-13]
steps:
- uses: actions/checkout@v4
- name: create test output directory
run: mkdir bin
- name: Test - portable C++ code
run: make test CXX=clang++ TYPE=debug VERSION=portable
- name: Test - x86-64 - AES-NI
run: make test CXX=clang++ TYPE=debug VERSION=aesni
gcc:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, ubuntu-22.04, windows-latest, macos-13]
steps:
- uses: actions/checkout@v4
- name: create test output directory
run: mkdir bin
- name: Test - portable C++ code
run: make test CXX=g++ TYPE=debug VERSION=portable
- name: Test - x86-64 - AES-NI
run: make test CXX=g++ TYPE=debug VERSION=aesni