Bump dtolnay/rust-toolchain from b3b07ba8b418998c39fb20f53e8b695cdcc8de1b to e97e2d8cc328f1b50210efc529dca0028893a2d9 #100
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: sanitizers | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: 'always' | |
| RUST_BACKTRACE: '1' | |
| NGINX_SOURCE_DIR: nginx | |
| BUILDREQUIRES: >- | |
| openssl-devel pcre2-devel zlib-devel | |
| cargo rust-src rustfmt | |
| clang compiler-rt llvm | |
| git-core | |
| make openssl patch which | |
| perl-Digest-SHA | |
| perl-FindBin | |
| perl-IO-Socket-SSL | |
| perl-Test-Harness | |
| perl-Test-Simple | |
| perl-lib | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/almalinux/almalinux:10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| nginx-ref: | |
| # master | |
| - stable-1.28 | |
| steps: | |
| - name: Install dependencies | |
| run: dnf install -y ${BUILDREQUIRES} | |
| - 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/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
| 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 | |
| key: ${{ runner.os }}-cargo-asan-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: ${{ runner.os }}-cargo-asan- | |
| - name: download pebble | |
| run: | | |
| build/get-pebble.sh | |
| echo TEST_NGINX_PEBBLE_BINARY="$PWD/bin/pebble" >> "$GITHUB_ENV" | |
| - name: Configure and build nginx | |
| run: | | |
| make -j$(nproc) BUILD=sanitize build | |
| - name: Run tests | |
| env: | |
| # `container` job steps are running as root, and thus all the files | |
| # created by the test scripts are owned by root. | |
| # But the worker processes are spawned as "nobody" by default, | |
| # resulting in permission errors. | |
| TEST_NGINX_GLOBALS: >- | |
| user root; | |
| run: | | |
| make -j$(nproc) BUILD=sanitize TEST_PREREQ= test |