|
| 1 | +name: Nightly Validation |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "27 3 * * *" |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +permissions: |
| 9 | + contents: read |
| 10 | + |
| 11 | +env: |
| 12 | + CARGO_TERM_COLOR: always |
| 13 | + |
| 14 | +jobs: |
| 15 | + build: |
| 16 | + timeout-minutes: 50 |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + matrix: |
| 20 | + include: |
| 21 | + - target: x86_64-apple-darwin |
| 22 | + os: macos-latest |
| 23 | + - target: aarch64-apple-darwin |
| 24 | + os: macos-latest |
| 25 | + - target: x86_64-unknown-linux-gnu |
| 26 | + os: ubuntu-latest |
| 27 | + - target: aarch64-unknown-linux-gnu |
| 28 | + os: ubuntu-latest |
| 29 | + |
| 30 | + runs-on: ${{ matrix.os }} |
| 31 | + steps: |
| 32 | + - name: Checkout |
| 33 | + uses: actions/checkout@v4 |
| 34 | + |
| 35 | + - name: Cache vendored deps |
| 36 | + uses: actions/cache@v4 |
| 37 | + with: |
| 38 | + path: | |
| 39 | + .vendor/flow-vendor |
| 40 | + lib/vendor |
| 41 | + lib/vendor-manifest |
| 42 | + key: ${{ runner.os }}-${{ runner.arch }}-vendor-${{ hashFiles('vendor.lock.toml') }} |
| 43 | + |
| 44 | + - name: Hydrate vendored deps |
| 45 | + run: scripts/vendor/vendor-repo.sh hydrate |
| 46 | + |
| 47 | + - name: Install Rust |
| 48 | + uses: dtolnay/rust-toolchain@stable |
| 49 | + with: |
| 50 | + targets: ${{ matrix.target }} |
| 51 | + |
| 52 | + - name: Cache Rust build |
| 53 | + uses: Swatinem/rust-cache@v2 |
| 54 | + with: |
| 55 | + workspaces: ". -> target" |
| 56 | + cache-on-failure: true |
| 57 | + |
| 58 | + - name: Install cross-compilation tools (Linux ARM) |
| 59 | + if: matrix.target == 'aarch64-unknown-linux-gnu' |
| 60 | + run: | |
| 61 | + sudo apt-get update |
| 62 | + sudo apt-get install -y gcc-aarch64-linux-gnu |
| 63 | +
|
| 64 | + - name: Build |
| 65 | + run: | |
| 66 | + if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then |
| 67 | + export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc |
| 68 | + fi |
| 69 | + cargo build --release --target ${{ matrix.target }} --bin f |
| 70 | +
|
| 71 | + build-linux-host-simd: |
| 72 | + timeout-minutes: 50 |
| 73 | + runs-on: [self-hosted, linux, x64, ci-1focus] |
| 74 | + env: |
| 75 | + RUSTFLAGS: -C target-cpu=native |
| 76 | + steps: |
| 77 | + - name: Checkout |
| 78 | + uses: actions/checkout@v4 |
| 79 | + |
| 80 | + - name: Cache vendored deps |
| 81 | + uses: actions/cache@v4 |
| 82 | + with: |
| 83 | + path: | |
| 84 | + .vendor/flow-vendor |
| 85 | + lib/vendor |
| 86 | + lib/vendor-manifest |
| 87 | + key: ${{ runner.os }}-${{ runner.arch }}-vendor-${{ hashFiles('vendor.lock.toml') }} |
| 88 | + |
| 89 | + - name: Hydrate vendored deps |
| 90 | + run: scripts/vendor/vendor-repo.sh hydrate |
| 91 | + |
| 92 | + - name: Install Rust |
| 93 | + uses: dtolnay/rust-toolchain@stable |
| 94 | + with: |
| 95 | + targets: x86_64-unknown-linux-gnu |
| 96 | + |
| 97 | + - name: Cache Rust build |
| 98 | + uses: Swatinem/rust-cache@v2 |
| 99 | + with: |
| 100 | + workspaces: ". -> target" |
| 101 | + cache-on-failure: true |
| 102 | + |
| 103 | + - name: Build (Linux host SIMD) |
| 104 | + run: cargo build --release --target x86_64-unknown-linux-gnu --features linux-host-simd-json --bin f |
0 commit comments