Nightly Validation #27
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: Nightly Validation | |
| on: | |
| schedule: | |
| - cron: "27 3 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| deps-freshness: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate readme casing | |
| run: scripts/ci/check-readme-case.sh | |
| - name: Cache vendored deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .vendor/flow-vendor | |
| lib/vendor | |
| lib/vendor-manifest | |
| key: ${{ runner.os }}-${{ runner.arch }}-vendor-${{ hashFiles('vendor.lock.toml') }} | |
| - name: Verify pinned vendor commit is published | |
| run: scripts/vendor/vendor-repo.sh verify-pinned-origin | |
| - name: Hydrate vendored deps | |
| run: scripts/vendor/vendor-repo.sh hydrate | |
| - name: Smoke vendor trims | |
| run: scripts/vendor/apply-trims.sh | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Check dependency freshness | |
| run: python3 scripts/deps_check.py | |
| build: | |
| timeout-minutes: 50 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: x86_64-apple-darwin | |
| os: macos-latest | |
| - target: aarch64-apple-darwin | |
| os: macos-latest | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| - target: aarch64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate readme casing | |
| run: scripts/ci/check-readme-case.sh | |
| - name: Cache vendored deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .vendor/flow-vendor | |
| lib/vendor | |
| lib/vendor-manifest | |
| key: ${{ runner.os }}-${{ runner.arch }}-vendor-${{ hashFiles('vendor.lock.toml') }} | |
| - name: Verify pinned vendor commit is published | |
| run: scripts/vendor/vendor-repo.sh verify-pinned-origin | |
| - name: Hydrate vendored deps | |
| run: scripts/vendor/vendor-repo.sh hydrate | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: ". -> target" | |
| cache-on-failure: true | |
| - name: Install cross-compilation tools (Linux ARM) | |
| if: matrix.target == 'aarch64-unknown-linux-gnu' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-aarch64-linux-gnu | |
| - name: Build | |
| run: | | |
| if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then | |
| export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc | |
| fi | |
| cargo build --release --target ${{ matrix.target }} --bin f | |
| build-linux-host-simd: | |
| timeout-minutes: 50 | |
| runs-on: [self-hosted, linux, x64, ci-1focus] | |
| env: | |
| RUSTFLAGS: -C target-cpu=native | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Validate readme casing | |
| run: scripts/ci/check-readme-case.sh | |
| - name: Cache vendored deps | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .vendor/flow-vendor | |
| lib/vendor | |
| lib/vendor-manifest | |
| key: ${{ runner.os }}-${{ runner.arch }}-vendor-${{ hashFiles('vendor.lock.toml') }} | |
| - name: Verify pinned vendor commit is published | |
| run: scripts/vendor/vendor-repo.sh verify-pinned-origin | |
| - name: Hydrate vendored deps | |
| run: scripts/vendor/vendor-repo.sh hydrate | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-unknown-linux-gnu | |
| - name: Cache Rust build | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: ". -> target" | |
| cache-on-failure: true | |
| - name: Build (Linux host SIMD) | |
| run: cargo build --release --target x86_64-unknown-linux-gnu --features linux-host-simd-json --bin f |