Max concurrent GrpcStore streams #967
Workflow file for this run
This file contains 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: Nix | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
permissions: read-all | |
jobs: | |
nix-bazel: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04] | |
name: Bazel Dev / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: >- # v4.1.1 | |
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Install Nix | |
uses: >- # v9 | |
DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
nix-installer-tag: v0.16.1 | |
- name: Cache Nix derivations | |
uses: >- # Custom commit, last pinned at 2023-11-17. | |
DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1 | |
- name: Mount bazel cache | |
uses: >- # v3.3.2 | |
actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 | |
with: | |
path: "~/.cache/bazel" | |
key: ${{ runner.os }}-bazel-nix | |
- name: Invoke Bazel build in Nix shell | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
nix develop --impure --command \ | |
bash -c "bazel test --config=linux_zig ... --verbose_failures" | |
elif [ "$RUNNER_OS" == "macOS" ]; then | |
nix develop --impure --command \ | |
bash -c "bazel test //... --verbose_failures" | |
else | |
echo "Unsupported runner OS: $RUNNER_OS" | |
exit 1 | |
fi | |
shell: bash | |
nix-cargo: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, macos-13] | |
name: Cargo Dev / ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: >- # v4.1.1 | |
actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Install Nix | |
uses: >- # v9 | |
DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
nix-installer-tag: v0.16.1 | |
- name: Cache Nix derivations | |
uses: >- # Custom commit, last pinned at 2023-11-17. | |
DeterminateSystems/magic-nix-cache-action@a04e6275a6bea232cd04fc6f3cbf20d4cb02a3e1 | |
- name: Invoke Cargo build in Nix shell | |
run: > | |
nix develop --impure --command | |
bash -c "cargo test --all" |