Bump libc from 0.2.176 to 0.2.177 in the all-dependencies group #173
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: 'always' | |
| RUST_BACKTRACE: '1' | |
| AWSLC_SOURCE_DIR: ${{ github.workspace }}/aws-lc | |
| NGINX_SOURCE_DIR: nginx | |
| jobs: | |
| rust-version: | |
| name: Minimal supported Rust version | |
| outputs: | |
| version: ${{ steps.read_version.outputs.msrv }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - id: read_version | |
| run: | | |
| awk -F '=' \ | |
| '/^rust-version[[:space:]]*=/ { gsub(/([" ]|#.*)/,"",$2); print ("msrv=" $2) }' \ | |
| Cargo.toml \ | |
| | tee -a "$GITHUB_OUTPUT" | |
| unix: | |
| needs: rust-version | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runner: | |
| - ubuntu | |
| rust-version: | |
| - stable | |
| nginx-ref: | |
| - master | |
| - stable-1.28 | |
| build: | |
| - debug | |
| - debug-static | |
| - release | |
| include: | |
| - runner: ubuntu | |
| rust-version: stable | |
| nginx-ref: stable-1.26 | |
| build: debug | |
| - runner: ubuntu | |
| rust-version: ${{ needs.rust-version.outputs.version }} | |
| nginx-ref: stable-1.28 | |
| build: debug | |
| - runner: ubuntu | |
| rust-version: stable | |
| nginx-ref: master # AWS-LC is not supported in stable-1.28 | |
| build: aws-lc | |
| - runner: macos | |
| rust-version: stable | |
| nginx-ref: stable-1.28 | |
| build: debug | |
| env: | |
| testTarget: >- | |
| ${{ (matrix.nginx-ref == 'stable-1.28' && matrix.build == 'debug') | |
| && 'full-test' | |
| || 'test' | |
| }} | |
| runs-on: ${{ matrix.runner }}-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| ref: ${{ matrix.nginx-ref }} | |
| repository: 'nginx/nginx' | |
| path: 'nginx' | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| repository: 'nginx/nginx-tests' | |
| path: 'nginx/tests' | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| if: startsWith(matrix.build, 'aws-lc') | |
| with: | |
| repository: 'aws/aws-lc' | |
| path: ${{ env.AWSLC_SOURCE_DIR }} | |
| - uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| components: clippy, rustfmt | |
| - uses: perl-actions/install-with-cpm@8b1a9840b26cc3885ae2889749a48629be2501b0 # v1.9 | |
| with: | |
| install: IO::Socket::SSL | |
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| bin/pebble | |
| nginx/objs/**/CACHEDIR.TAG | |
| nginx/objs/**/ngx-debug | |
| nginx/objs/**/ngx-release | |
| target/ | |
| key: ${{ runner.os }}-nginx-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-nginx- | |
| - name: download pebble | |
| run: | | |
| build/get-pebble.sh | |
| echo TEST_NGINX_PEBBLE_BINARY="$PWD/bin/pebble" >> "$GITHUB_ENV" | |
| - name: build | |
| id: build | |
| run: make BUILD=${{ matrix.build }} -j $(nproc) build | |
| - name: check | |
| # always run if build succeeds | |
| if: ${{ !cancelled() && steps.build.outcome == 'success' }} | |
| run: make BUILD=${{ matrix.build }} check | |
| - name: run tests | |
| # always run if build succeeds | |
| if: ${{ !cancelled() && steps.build.outcome == 'success' }} | |
| run: make BUILD=${{ matrix.build }} TEST_PREREQ= ${{ env.testTarget }} |