-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (40 loc) · 1.11 KB
/
build_and_test.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
name: Build and test cinnamon
run-name: 'Build and Test: ${{ github.event.head_commit.message }}'
on:
workflow_dispatch:
push:
jobs:
main:
name: Build and test
runs-on: ubuntu-22.04
env:
CC: clang
CXX: clang++
LDFLAGS: -fuse-ld=mold
CMAKE_GENERATOR: Ninja
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install build dependencies
run: sudo apt-get install clang ninja-build mold libvulkan-dev
- name: Restore dependency cache
id: dependency-cache-restore
uses: actions/cache/restore@v3
with:
path: |
llvm
upmem
key: cinnamon-dependencies-${{ runner.os }}
- name: Build
run: .github/workflows/build-ci.sh
- name: Test
working-directory: cinnamon/build
run: ninja check-cinm-mlir
- name: Save dependency cache
uses: actions/cache/save@v3
if: always()
with:
path: |
llvm
upmem
key: ${{ steps.dependency-cache-restore.outputs.cache-primary-key }}