-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (60 loc) · 1.7 KB
/
LittleECS.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
name: LittleECS
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
windows-latest-msvc:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Building...
run: bazelisk build --config=microsoft_compiler_opts //:LittleECSTests
- name: Testing...
run: bazelisk test --config=microsoft_compiler_opts //:LittleECSTests
ubuntu-latest-gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Version
run: gcc --version
- name: Building...
run: CC=gcc bazelisk build --config=default_compiler_opts //:LittleECSTests
- name: Testing...
run: CC=gcc bazelisk test --config=default_compiler_opts //:LittleECSTests
ubuntu-latest-clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Install clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x ./llvm.sh
sudo ./llvm.sh 17
- name: Version
run: clang --version
- name: Building...
run: CC=clang++-17 bazelisk build --config=default_compiler_opts //:LittleECSTests
- name: Testing...
run: CC=clang++-17 bazelisk test --config=default_compiler_opts //:LittleECSTests