|
58 | 58 | - uses: actions/checkout@v4 |
59 | 59 | with: |
60 | 60 | persist-credentials: false |
| 61 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
| 62 | + run: | |
| 63 | + sudo apt-get update -y |
| 64 | + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
61 | 65 | - uses: dtolnay/rust-toolchain@nightly |
62 | 66 | ## note: requires 'nightly' toolchain b/c `cargo-udeps` uses the `rustc` '-Z save-analysis' option |
63 | 67 | ## * ... ref: <https://github.com/est31/cargo-udeps/issues/73> |
@@ -112,6 +116,10 @@ jobs: |
112 | 116 | - uses: actions/checkout@v4 |
113 | 117 | with: |
114 | 118 | persist-credentials: false |
| 119 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
| 120 | + run: | |
| 121 | + sudo apt-get update -y |
| 122 | + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
115 | 123 | - uses: dtolnay/rust-toolchain@master |
116 | 124 | with: |
117 | 125 | toolchain: stable |
@@ -171,6 +179,10 @@ jobs: |
171 | 179 | - uses: actions/checkout@v4 |
172 | 180 | with: |
173 | 181 | persist-credentials: false |
| 182 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
| 183 | + run: | |
| 184 | + sudo apt-get update -y |
| 185 | + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
174 | 186 | - uses: dtolnay/rust-toolchain@master |
175 | 187 | with: |
176 | 188 | toolchain: ${{ env.RUST_MIN_SRV }} |
@@ -264,7 +276,7 @@ jobs: |
264 | 276 | - uses: actions/checkout@v4 |
265 | 277 | with: |
266 | 278 | persist-credentials: false |
267 | | - - if: ${{ contains(matrix.os, 'ubuntu') }} |
| 279 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
268 | 280 | run: | |
269 | 281 | sudo apt-get update -y |
270 | 282 | sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
@@ -324,7 +336,7 @@ jobs: |
324 | 336 | - uses: actions/checkout@v4 |
325 | 337 | with: |
326 | 338 | persist-credentials: false |
327 | | - - if: ${{ contains(matrix.os, 'ubuntu') }} |
| 339 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
328 | 340 | run: | |
329 | 341 | sudo apt-get update -y |
330 | 342 | sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
@@ -357,7 +369,7 @@ jobs: |
357 | 369 | - uses: actions/checkout@v4 |
358 | 370 | with: |
359 | 371 | persist-credentials: false |
360 | | - - if: ${{ contains(matrix.os, 'ubuntu') }} |
| 372 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
361 | 373 | run: | |
362 | 374 | sudo apt-get update -y |
363 | 375 | sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
@@ -519,7 +531,7 @@ jobs: |
519 | 531 | - uses: actions/checkout@v4 |
520 | 532 | with: |
521 | 533 | persist-credentials: false |
522 | | - - if: ${{ contains(matrix.os, 'ubuntu') }} |
| 534 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
523 | 535 | run: | |
524 | 536 | sudo apt-get update -y |
525 | 537 | sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
@@ -625,6 +637,9 @@ jobs: |
625 | 637 | # ** pass needed environment into `cross` container (iff `cross` not already configured via "Cross.toml") |
626 | 638 | if [ "${CARGO_CMD}" = 'cross' ] && [ ! -e "Cross.toml" ] ; then |
627 | 639 | printf "[build.env]\npassthrough = [\"CI\", \"RUST_BACKTRACE\", \"CARGO_TERM_COLOR\"]\n" > Cross.toml |
| 640 | + if [[ "${{ matrix.job.target }}" == *"linux"* ]]; then |
| 641 | + printf "[target.${{ matrix.job.target }}]\npre-build = [\"apt-get update\", \"apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev\"]\n" >> Cross.toml |
| 642 | + fi |
628 | 643 | fi |
629 | 644 | # * executable for `strip`? |
630 | 645 | STRIP="strip" |
@@ -820,6 +835,10 @@ jobs: |
820 | 835 | - uses: actions/checkout@v4 |
821 | 836 | with: |
822 | 837 | persist-credentials: false |
| 838 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
| 839 | + run: | |
| 840 | + sudo apt-get update -y |
| 841 | + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
823 | 842 | - uses: Swatinem/rust-cache@v2 |
824 | 843 | - name: Run sccache-cache |
825 | 844 | uses: mozilla-actions/[email protected] |
@@ -902,6 +921,10 @@ jobs: |
902 | 921 | - uses: actions/checkout@v4 |
903 | 922 | with: |
904 | 923 | persist-credentials: false |
| 924 | + - if: ${{ contains(matrix.job.os, 'ubuntu') }} |
| 925 | + run: | |
| 926 | + sudo apt-get update -y |
| 927 | + sudo apt-get -yq --no-install-suggests --no-install-recommends install libsystemd-dev |
905 | 928 | - uses: dtolnay/rust-toolchain@master |
906 | 929 | with: |
907 | 930 | toolchain: ${{ env.RUST_MIN_SRV }} |
|
0 commit comments