-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (61 loc) · 1.55 KB
/
build.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
65
66
---
name: Build
# Trigger the workflow on push or pull request
"on":
pull_request:
branches:
- main
- stable-0.1.x
- stable-0.2.x
- stable-0.3.x
- stable-0.4.x
- stable-0.5.x
- stable-0.6.x
- stable-0.7.x
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/[email protected]
with:
version: "v0.4.2"
- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
pkg-config \
tpm-udev \
libtss2-dev \
libcap-dev \
libdhash-dev \
libkrb5-dev \
libpcre2-dev \
libclang-13-dev \
autoconf \
gettext \
libdbus-1-dev \
libutf8proc-dev \
libgirepository1.0-dev \
libcairo2-dev \
libgdk-pixbuf2.0-dev \
libsoup-3.0-dev \
libpango1.0-dev \
libatk1.0-dev \
libgtk-3-dev \
libwebkit2gtk-4.1-dev
- name: "Fetch submodules"
run: git submodule init && git submodule update
- name: "Run build"
run: cargo build --all-features --all-targets
continue-on-error: false