Repository navigation
85 lines (72 loc) · 2.59 KB
/
Copy pathe2e.yml
File metadata and controls
85 lines (72 loc) · 2.59 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
# This workflow is managed by gh actions-lock.
# SPDX-License-Identifier: MPL-2.0
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# PanLL — E2E pipeline
#
# Builds and tests the Gossamer desktop shell. The Deno E2E, crosscutting and
# bench jobs were removed (owner decision; #137, #148): every one of them
# imported src/**/*.res.js, which #107 deleted, through a deno.json that #108
# deleted. The bench job's `| tee` also hid its failure, so it showed green.
# They come back against the AffineScript frontend under #148.
name: E2E + Crosscutting + Bench
on:
push:
branches: [main, master, develop]
paths:
- 'src/**'
- 'src-gossamer/**'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/e2e.yml'
pull_request:
branches: [main, master]
paths:
- 'src/**'
- 'src-gossamer/**'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/e2e.yml'
workflow_dispatch:
permissions: read-all
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
gossamer-backend:
name: Rust Backend — Build + Check
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v7.0.1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
# gossamer-rs builds libgossamer with Zig for the host CPU (no -mcpu), so
# a target/ cache restored on a runner with another CPU model can die
# with SIGILL. Key the cache on the CPU model.
- name: CPU model for the cache key
id: cpu
run: echo "model=$(grep -m1 'model name' /proc/cpuinfo | sha256sum | cut -c1-12)" >> "$GITHUB_OUTPUT"
- name: Rust cache
uses: Swatinem/rust-cache@v2.9.2
with:
key: cpu-${{ steps.cpu.outputs.model }}
- name: Install GTK/WebKit dev headers
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
# gossamer-rs compiles libgossamer from its Zig source and requires
# exactly this version (bindings/rust/build.rs, SUPPORTED_ZIG).
- name: Install Zig 0.15.2
uses: goto-bus-stop/setup-zig@v2.2.1
with:
version: 0.15.2
# The desktop shell is behind the `gossamer` feature; the library and
# Rust CI build without it.
- name: Build Gossamer backend
run: cargo build --release --locked --features gossamer --bin panll-gossamer
- name: Run Rust tests
run: cargo test --locked --features gossamer