-
-
Notifications
You must be signed in to change notification settings - Fork 47
108 lines (91 loc) · 2.49 KB
/
rust.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: Rust
on:
push:
branches: [ master]
pull_request:
branches: [ master, dev]
workflow_dispatch:
jobs:
ci-safety:
name: ci-safety
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v4
- name: run zizmor ci analysis tool
run: uvx zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: zizmor
build:
name : build-latest-stable
runs-on: ubuntu-20.04
# version used in release process to guarantee old-GLIBC compatibility
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build
run: cargo build --verbose --release --target x86_64-unknown-linux-gnu
buildmsrv:
name: build-msrv
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: "rm Cargo.lock"
- name: Install Rust 1.65 toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.65
override: true
- name: build
run: cargo build --release
buildnightly:
name: build-nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: build
run: cargo build --release --target x86_64-unknown-linux-gnu
unittest:
name: unit & integration tests
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: './ressources/install_all_compilers_ci.sh'
- uses: oven-sh/setup-bun@v1
- uses: dlang-community/setup-dlang@v1
- uses: erlef/setup-beam@v1
with:
otp-version: "23"
elixir-version: "1.14"
- name: Unit tests
run: cargo test --release --features ignore_in_ci
- name: integration tests
run: cargo test --release --features ignore_in_ci --test integration
install:
name: install (download)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: installation tests
run: ./install.sh