|
8 | 8 | workflow_dispatch:
|
9 | 9 |
|
10 | 10 | jobs:
|
| 11 | + ci-safety: |
| 12 | + name: ci-safety |
| 13 | + runs-on: ubuntu-20.04 |
| 14 | + steps: |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + with: |
| 17 | + persist-credentials: false |
| 18 | + - uses: astral-sh/setup-uv@v4 |
| 19 | + - name: run zizmor ci analysis tool |
| 20 | + run: uvx zizmor --format sarif . > results.sarif |
| 21 | + env: |
| 22 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 23 | + - name: Upload SARIF file |
| 24 | + uses: github/codeql-action/upload-sarif@v3 |
| 25 | + with: |
| 26 | + sarif_file: results.sarif |
| 27 | + category: zizmor |
| 28 | + |
11 | 29 | build:
|
12 | 30 | name : build-latest-stable
|
13 | 31 | runs-on: ubuntu-20.04
|
| 32 | + # version used in release process to guarantee old-GLIBC compatibility |
| 33 | + |
14 | 34 | steps:
|
15 |
| - - uses: actions/checkout@v2 |
| 35 | + - uses: actions/checkout@v4 |
| 36 | + with: |
| 37 | + persist-credentials: false |
| 38 | + - uses: dtolnay/rust-toolchain@stable |
16 | 39 | - name: Build
|
17 | 40 | run: cargo build --verbose --release --target x86_64-unknown-linux-gnu
|
18 | 41 |
|
19 | 42 | buildmsrv:
|
20 | 43 | name: build-msrv
|
21 | 44 | runs-on: ubuntu-20.04
|
22 | 45 | steps:
|
23 |
| - - uses: actions/checkout@v2 |
24 |
| - - run: "rm Cargo.lock" |
25 |
| - - name: Install Rust 1.65 toolchain |
26 |
| - uses: actions-rs/toolchain@v1 |
| 46 | + - uses: actions/checkout@v4 |
27 | 47 | with:
|
28 |
| - toolchain: 1.65 |
29 |
| - override: true |
| 48 | + persist-credentials: false |
| 49 | + |
30 | 50 | - name: build
|
31 |
| - run: cargo build --release |
| 51 | + run: cargo build --release --locked |
32 | 52 |
|
33 | 53 | buildnightly:
|
34 | 54 | name: build-nightly
|
35 |
| - runs-on: ubuntu-20.04 |
| 55 | + runs-on: ubuntu-latest |
36 | 56 | steps:
|
37 |
| - - uses: actions/checkout@v2 |
38 |
| - - name: Install nightly toolchain |
39 |
| - uses: actions-rs/toolchain@v1 |
| 57 | + - uses: actions/checkout@v4 |
40 | 58 | with:
|
41 |
| - toolchain: nightly |
42 |
| - override: true |
| 59 | + persist-credentials: false |
| 60 | + - uses: dtolnay/rust-toolchain@nightly |
43 | 61 | - name: build
|
44 | 62 | run: cargo build --release --target x86_64-unknown-linux-gnu
|
45 | 63 |
|
46 | 64 | unittest:
|
47 | 65 | name: unit & integration tests
|
48 | 66 | runs-on: ubuntu-20.04
|
49 | 67 | steps:
|
50 |
| - |
51 |
| - - uses: actions/checkout@v2 |
52 |
| - |
53 |
| - - run: './ressources/install_all_compilers_ci.sh' |
54 |
| - |
55 |
| - - uses: oven-sh/setup-bun@v1 |
56 |
| - |
57 |
| - - uses: dlang-community/setup-dlang@v1 |
58 |
| - |
59 |
| - - uses: erlef/setup-beam@v1 |
60 |
| - with: |
61 |
| - otp-version: "23" |
62 |
| - elixir-version: "1.14" |
63 |
| - |
64 |
| - |
65 |
| - - name: Unit tests |
66 |
| - run: cargo test --release --features ignore_in_ci |
67 |
| - |
68 |
| - - name: integration tests |
69 |
| - run: cargo test --release --features ignore_in_ci --test integration |
70 |
| - |
71 |
| - |
72 |
| - |
| 68 | + - uses: actions/checkout@v4 |
| 69 | + with: |
| 70 | + persist-credentials: false |
| 71 | + - uses: dtolnay/rust-toolchain@stable |
| 72 | + - run: './ressources/install_all_compilers_ci.sh' |
| 73 | + - uses: oven-sh/setup-bun@v1 |
| 74 | + - uses: dlang-community/setup-dlang@v1 |
| 75 | + - uses: erlef/setup-beam@v1 |
| 76 | + with: |
| 77 | + otp-version: "23" |
| 78 | + elixir-version: "1.14" |
| 79 | + - name: Unit tests |
| 80 | + run: cargo test --release --features ignore_in_ci |
| 81 | + - name: integration tests |
| 82 | + run: cargo test --release --features ignore_in_ci --test integration |
73 | 83 |
|
74 | 84 | install:
|
75 | 85 | name: install (download)
|
76 | 86 | runs-on: ubuntu-20.04
|
77 | 87 | steps:
|
78 |
| - - uses: actions/checkout@v2 |
| 88 | + - uses: actions/checkout@v4 |
| 89 | + with: |
| 90 | + persist-credentials: false |
79 | 91 | - name: installation tests
|
80 | 92 | run: ./install.sh
|
81 |
| - |
82 |
| - |
|
0 commit comments