|
21 | 21 | - python-integration |
22 | 22 | - ruby-integration |
23 | 23 | - dotnet-integration |
| 24 | + - rust-cargo-lambda-integration |
24 | 25 | steps: |
25 | 26 | - name: report-failure |
26 | 27 | if: | |
|
33 | 34 | needs.custom-make-integration.result != 'success' || |
34 | 35 | needs.python-integration.result != 'success' || |
35 | 36 | needs.ruby-integration.result != 'success' || |
36 | | - needs.dotnet-integration.result != 'success' |
| 37 | + needs.dotnet-integration.result != 'success' || |
| 38 | + needs.rust-cargo-lambda-integration.result != 'success' |
37 | 39 | run: exit 1 |
38 | 40 | - name: report-success |
39 | 41 | run: exit 0 |
@@ -296,3 +298,57 @@ jobs: |
296 | 298 | python-version: ${{ matrix.python }} |
297 | 299 | - run: make init |
298 | 300 | - run: pytest -vv tests/integration/workflows/dotnet_clipackage |
| 301 | + |
| 302 | + rust-cargo-lambda-integration: |
| 303 | + name: ${{ matrix.os }} / ${{ matrix.python }} / rust-cargo-lambda |
| 304 | + if: github.repository_owner == 'aws' |
| 305 | + runs-on: ${{ matrix.os }} |
| 306 | + env: |
| 307 | + CARGO_LAMBDA_VERSION: 0.15.0 |
| 308 | + defaults: |
| 309 | + run: |
| 310 | + shell: bash |
| 311 | + strategy: |
| 312 | + fail-fast: false |
| 313 | + matrix: |
| 314 | + os: |
| 315 | + - ubuntu-latest |
| 316 | + - windows-latest |
| 317 | + python: |
| 318 | + - "3.9" |
| 319 | + - "3.8" |
| 320 | + - "3.7" |
| 321 | + rust: |
| 322 | + - stable |
| 323 | + steps: |
| 324 | + - uses: actions/checkout@v3 |
| 325 | + - uses: actions/setup-python@v4 |
| 326 | + with: |
| 327 | + python-version: ${{ matrix.python }} |
| 328 | + |
| 329 | + # Install and configure Rust |
| 330 | + - name: Install rustup |
| 331 | + run: | |
| 332 | + : install rustup if needed |
| 333 | + if ! command -v rustup &> /dev/null ; then |
| 334 | + curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y |
| 335 | + echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH |
| 336 | + fi |
| 337 | + if: ${{ matrix.os }} == 'ubuntu-latest' |
| 338 | + - name: rustup toolchain install ${{ matrix.rust }} |
| 339 | + run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update |
| 340 | + - run: rustup default ${{ matrix.rust }} |
| 341 | + - run: | |
| 342 | + : disable incremental compilation |
| 343 | + echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV |
| 344 | + - run: | |
| 345 | + : enable colors in Cargo output |
| 346 | + echo CARGO_TERM_COLOR=always >> $GITHUB_ENV |
| 347 | +
|
| 348 | + # Install and configure Cargo Lambda |
| 349 | + - name: Install Cargo Lambda |
| 350 | + run: pip install cargo-lambda==$CARGO_LAMBDA_VERSION |
| 351 | + - run: echo "$HOME/.local/bin" >> $GITHUB_PATH |
| 352 | + |
| 353 | + - run: make init |
| 354 | + - run: pytest -vv tests/integration/workflows/rust_cargo |
0 commit comments