-
Notifications
You must be signed in to change notification settings - Fork 11
50 lines (50 loc) · 1.48 KB
/
main.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
name: cicd
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: setup
run: sudo apt-get update && sudo apt-get -y -qq install clang-tidy cppcheck cflow spell gcc-powerpc64-linux-gnu gcc-powerpc-linux-gnu gcc-aarch64-linux-gnu gcc-i686-linux-gnu qemu-user-binfmt
- name: test-main
run: make LLVM_VERSION=14 CC=clang
working-directory: .
- name: bench-main
run: make LLVM_VERSION=14 CC=clang bench
working-directory: .
- name: test-multiplatform
run: make test-multiplatform CC=clang
working-directory: .
- name: test-cpp-translation-unit
run: make LLVM_VERSION=14 CC=clang CXX=clang++ test-cpp-translation-unit
working-directory: .
- uses: actions/upload-artifact@v3
if: failure()
with:
name: buddy_alloc.h.gcov
path: ./buddy_alloc.h.gcov
if-no-files-found: warn
build-windows:
runs-on: windows-latest
strategy:
matrix:
arch: [amd64, amd64_x86, amd64_arm64]
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Build Windows target
run: |
cmake -G "NMake Makefiles" .
nmake
- name: Run Tests
# Skip tests on ARM (cross-compilation)
if: ${{ !contains( matrix.arch, 'amd64_arm' ) }}
run: |
./buddy_tests