|
1 | | -name: Build and run tests |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - "**" # target all branches |
10 | | - schedule: |
11 | | - - cron: '15 0 * * *' # every day at 00:15 UTC |
12 | | - |
13 | | -env: |
14 | | - CARGO_TERM_COLOR: always |
15 | | - RUST_LOG: debug |
16 | | - RUST_BACKTRACE: full |
17 | | - ML_BRIDGE_PODMAN_TESTS: 1 |
18 | | - |
19 | | -jobs: |
20 | | - build_windows: |
21 | | - runs-on: windows-latest |
22 | | - steps: |
23 | | - - name: Checkout repository |
24 | | - uses: actions/checkout@v4 |
25 | | - with: |
26 | | - submodules: recursive |
27 | | - |
28 | | - - name: Install python toml package |
29 | | - run: python3 -m pip install toml |
30 | | - |
31 | | - - name: Install rust |
32 | | - run: >- |
33 | | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
34 | | - --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
35 | | -
|
36 | | - - name: Build |
37 | | - run: cargo build --locked |
38 | | - |
39 | | - - name: Run tests |
40 | | - run: cargo test --all |
41 | | - |
42 | | - - name: Run doc tests |
43 | | - run: cargo test --doc |
44 | | - |
45 | | - build_ubuntu: |
46 | | - runs-on: ubuntu-latest |
47 | | - steps: |
48 | | - - name: Checkout the repository |
49 | | - uses: actions/checkout@v4 |
50 | | - with: |
51 | | - submodules: recursive |
52 | | - |
53 | | - - name: Update local dependency repositories |
54 | | - run: sudo apt-get update |
55 | | - |
56 | | - - name: Install build dependencies |
57 | | - run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman pkg-config |
58 | | - |
59 | | - - name: Install rust |
60 | | - run: >- |
61 | | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
62 | | - --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
63 | | -
|
64 | | - - name: Build |
65 | | - run: cargo build --locked |
66 | | - |
67 | | - - name: Run tests |
68 | | - run: cargo test --all |
69 | | - |
70 | | - - name: Run doc tests |
71 | | - run: cargo test --doc |
72 | | - |
73 | | - build_macos: |
74 | | - runs-on: macos-latest |
75 | | - steps: |
76 | | - - name: Checkout repository and submodules |
77 | | - uses: actions/checkout@v4 |
78 | | - with: |
79 | | - submodules: recursive |
| 1 | +# name: Build and run tests |
| 2 | + |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - master |
| 7 | +# pull_request: |
| 8 | +# branches: |
| 9 | +# - "**" # target all branches |
| 10 | +# schedule: |
| 11 | +# - cron: '15 0 * * *' # every day at 00:15 UTC |
| 12 | + |
| 13 | +# env: |
| 14 | +# CARGO_TERM_COLOR: always |
| 15 | +# RUST_LOG: debug |
| 16 | +# RUST_BACKTRACE: full |
| 17 | +# ML_BRIDGE_PODMAN_TESTS: 1 |
| 18 | + |
| 19 | +# jobs: |
| 20 | +# build_windows: |
| 21 | +# runs-on: windows-latest |
| 22 | +# steps: |
| 23 | +# - name: Checkout repository |
| 24 | +# uses: actions/checkout@v4 |
| 25 | +# with: |
| 26 | +# submodules: recursive |
| 27 | + |
| 28 | +# - name: Install python toml package |
| 29 | +# run: python3 -m pip install toml |
| 30 | + |
| 31 | +# - name: Install rust |
| 32 | +# run: >- |
| 33 | +# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
| 34 | +# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
| 35 | + |
| 36 | +# - name: Build |
| 37 | +# run: cargo build --locked |
| 38 | + |
| 39 | +# - name: Run tests |
| 40 | +# run: cargo test --all |
| 41 | + |
| 42 | +# - name: Run doc tests |
| 43 | +# run: cargo test --doc |
| 44 | + |
| 45 | +# build_ubuntu: |
| 46 | +# runs-on: ubuntu-latest |
| 47 | +# steps: |
| 48 | +# - name: Checkout the repository |
| 49 | +# uses: actions/checkout@v4 |
| 50 | +# with: |
| 51 | +# submodules: recursive |
| 52 | + |
| 53 | +# - name: Update local dependency repositories |
| 54 | +# run: sudo apt-get update |
| 55 | + |
| 56 | +# - name: Install build dependencies |
| 57 | +# run: sudo apt-get install -yqq --no-install-recommends build-essential python3 python3-toml podman pkg-config |
| 58 | + |
| 59 | +# - name: Install rust |
| 60 | +# run: >- |
| 61 | +# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
| 62 | +# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
| 63 | + |
| 64 | +# - name: Build |
| 65 | +# run: cargo build --locked |
| 66 | + |
| 67 | +# - name: Run tests |
| 68 | +# run: cargo test --all |
| 69 | + |
| 70 | +# - name: Run doc tests |
| 71 | +# run: cargo test --doc |
| 72 | + |
| 73 | +# build_macos: |
| 74 | +# runs-on: macos-latest |
| 75 | +# steps: |
| 76 | +# - name: Checkout repository and submodules |
| 77 | +# uses: actions/checkout@v4 |
| 78 | +# with: |
| 79 | +# submodules: recursive |
80 | 80 |
|
81 | | - - name: Install python toml package |
82 | | - run: python3 -m pip install toml --break-system-packages --user |
| 81 | +# - name: Install python toml package |
| 82 | +# run: python3 -m pip install toml --break-system-packages --user |
83 | 83 |
|
84 | | - - name: Install rust |
85 | | - run: >- |
86 | | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
87 | | - --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
| 84 | +# - name: Install rust |
| 85 | +# run: >- |
| 86 | +# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y |
| 87 | +# --default-toolchain $(python3 ./build-tools/cargo-info-extractor/extract.py --rust-version) |
88 | 88 |
|
89 | | - - name: Build |
90 | | - run: cargo build --locked |
| 89 | +# - name: Build |
| 90 | +# run: cargo build --locked |
91 | 91 |
|
92 | | - - name: Run tests |
93 | | - run: cargo test --all |
| 92 | +# - name: Run tests |
| 93 | +# run: cargo test --all |
94 | 94 |
|
95 | | - - name: Run doc tests |
96 | | - run: cargo test --doc |
| 95 | +# - name: Run doc tests |
| 96 | +# run: cargo test --doc |
0 commit comments