-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (74 loc) · 2.19 KB
/
Copy pathci.yml
File metadata and controls
78 lines (74 loc) · 2.19 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
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
msrv:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
- name: Checkout
uses: actions/checkout@v4
- name: Install MSRV
uses: dtolnay/rust-toolchain@1.88.0
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
version: "24.x"
- name: Check all targets at MSRV
run: cargo check --locked --all-targets --all-features
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
df -h
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Rust
uses: Swatinem/rust-cache@v2
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
version: "24.x"
- name: Test
run: cargo test --locked --all-features
- name: Check all targets
run: cargo check --locked --all-targets --all-features
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --locked --all-targets --all-features -- -D warnings
- name: Validate deployment manifests
run: |
bash -n scripts/*.sh
docker compose -f compose.yaml config --quiet
container-image:
runs-on: ubuntu-latest
steps:
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
- name: Checkout
uses: actions/checkout@v4
- name: Build production image
run: docker build --file Containerfile --tag unirust-ci .