Repository navigation
97 lines (85 loc) · 2.95 KB
/
Copy pathci-linux-dev.yml
File metadata and controls
97 lines (85 loc) · 2.95 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
name: ci-linux-dev
on:
pull_request:
branches:
- dev
types:
- opened
- reopened
- synchronize
permissions:
contents: read
concurrency:
group: ci-linux-dev-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and Test (GCC Debug)
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
fetch-depth: 1
- name: Install Nix
uses: cachix/install-nix-action@v31.10.6
- name: Build and test
env:
TRACY_NO_INVARIANT_CHECK: "1"
run: nix develop --command bash -c "
rustup toolchain install stable --no-self-update &&
rustup default stable &&
cmake -B build -G Ninja
-DCMAKE_C_COMPILER=gcc
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_TOOLCHAIN_FILE=\$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache &&
cmake --build build --parallel \$(nproc) --target toast_engine &&
cmake --build build --parallel \$(nproc) --target toast_tests &&
ctest --test-dir build --verbose &&
cmake --build build --parallel \$(nproc) --target dummy_game
"
clang-tidy:
name: clang-tidy
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
fetch-depth: 1
- name: Install Nix
uses: cachix/install-nix-action@v31.10.6
- name: Configure and run clang-tidy
run: nix develop --command bash -c "
rustup toolchain install stable --no-self-update &&
rustup default stable &&
cmake -B build -G Ninja
-DCMAKE_C_COMPILER=gcc
-DCMAKE_CXX_COMPILER=g++
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_TOOLCHAIN_FILE=\$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON &&
bash ./tools/ci/clang_tidy.sh build
"
build-editor:
name: Build editor (C#)
runs-on: [self-hosted, Linux, X64]
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
fetch-depth: 1
- name: Install Nix
uses: cachix/install-nix-action@v31.10.6
- name: Build editor (Debug)
run: nix develop --command bash -c 'dotnet build editor/editor.csproj --configuration Debug'