Repository navigation
65 lines (57 loc) · 1.65 KB
/
Copy pathlinux.yml
File metadata and controls
65 lines (57 loc) · 1.65 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
name: Linux Build
# Validation build for the Linux artifacts. Runs on demand and on PRs that
# touch the build, so the cross-platform compile and packaging are exercised
# without cutting a release. Artifacts are uploaded to the run for download.
on:
workflow_dispatch: {}
pull_request:
paths:
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- "assets/tables.desktop"
- "scripts/linux.sh"
- ".github/workflows/linux.yml"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- arch: x86_64
runner: ubuntu-22.04
- arch: aarch64
runner: ubuntu-22.04-arm
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v5
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
clang \
curl \
file \
desktop-file-utils \
libasound2-dev \
libdbus-1-dev \
libfontconfig-dev \
libssl-dev \
libvulkan1 \
libwayland-dev \
libx11-xcb-dev \
libxkbcommon-x11-dev
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Install cargo-deb
run: cargo install cargo-deb --locked
- name: Build + package
run: scripts/linux.sh ${{ matrix.arch }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: tables-linux-${{ matrix.arch }}
path: dist/linux/*
if-no-files-found: error