-
Notifications
You must be signed in to change notification settings - Fork 101
67 lines (62 loc) · 2.04 KB
/
check-downstream-compiles.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
67
name: Build and Test Dependents
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [ dev ]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTUP_MAX_RETRIES: 10
RUST_BACKTRACE: short
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-arecibo-compiles:
runs-on: buildjet-8vcpu-ubuntu-2204
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/neptune
- uses: actions/checkout@v4
with:
repository: lurk-lab/arecibo
path: ${{ github.workspace }}/arecibo
ref: "dev"
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Patch Cargo.toml
working-directory: ${{ github.workspace }}/arecibo
run: |
echo "[patch.'https://github.com/lurk-lab/neptune']" >> Cargo.toml
echo "neptune = { path='../neptune' }" >> Cargo.toml
- name: Check Arecibo types don't break spectacularly
working-directory: ${{ github.workspace }}/arecibo
run: cargo check --all --tests --benches --examples
check-lurk-compiles:
runs-on: buildjet-8vcpu-ubuntu-2204
env:
RUSTFLAGS: -D warnings
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/neptune
- uses: actions/checkout@v4
with:
repository: lurk-lab/lurk-rs
path: ${{ github.workspace }}/lurk
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Patch Cargo.toml
working-directory: ${{ github.workspace }}/lurk
run: |
echo "[patch.'https://github.com/lurk-lab/neptune']" >> Cargo.toml
echo "neptune = { path='../neptune' }" >> Cargo.toml
- name: Check Lurk-rs types don't break spectacularly
working-directory: ${{ github.workspace }}/lurk
run: cargo check --all --tests --benches --examples