|
26 | 26 | runs-on: &dind-large-setup |
27 | 27 | labels: dind-large |
28 | 28 | container: &container-setup |
29 | | - image: ghcr.io/dfinity/ic-build@sha256:15e6eca52d696697a681916c92ab3623ebff1fcff70156220b0270c2985a6b2b |
| 29 | + image: ghcr.io/dfinity/ic-build@sha256:18d23aef1f5e9e7e1eef94c32563f8ed15531ae79065bb00bb5206a643fc49fe |
30 | 30 | options: >- |
31 | 31 | -e NODE_NAME --privileged --cgroupns host --mount type=tmpfs,target="/tmp/containers" |
32 | 32 | timeout-minutes: 90 |
|
37 | 37 | with: |
38 | 38 | fetch-depth: ${{ github.event_name == 'pull_request' && 256 || 0 }} |
39 | 39 | ref: ${{ inputs.commit-sha }} |
| 40 | + - uses: ./.github/actions/netrc |
40 | 41 | - name: Run Libfuzzer targets |
41 | 42 | uses: ./.github/actions/bazel |
42 | 43 | with: |
@@ -159,6 +160,7 @@ jobs: |
159 | 160 | timeout-minutes: 150 |
160 | 161 | steps: |
161 | 162 | - *checkout |
| 163 | + - uses: ./.github/actions/netrc |
162 | 164 | - name: "Node Name" |
163 | 165 | run: | |
164 | 166 | echo "::notice::Node Name: ${NODE_NAME}" |
@@ -281,6 +283,7 @@ jobs: |
281 | 283 | with: |
282 | 284 | fetch-depth: 1 # on macOS we don't need any git history |
283 | 285 | ref: ${{ inputs.commit-sha }} |
| 286 | + - uses: ./.github/actions/netrc |
284 | 287 | # The amd64-darwin runners are pretty slow so we don't always run the tests -- we do however |
285 | 288 | # wanna make sure bazel evaluates successfully. |
286 | 289 | - name: Evaluate workspace |
@@ -353,19 +356,9 @@ jobs: |
353 | 356 | nsc bazel cache setup --bazelrc=/tmp/bazel-cache.bazelrc |
354 | 357 | cat /tmp/bazel-cache.bazelrc |
355 | 358 | - uses: actions/checkout@v4 |
| 359 | + - uses: ./.github/actions/netrc |
356 | 360 | - name: Build and Test |
357 | 361 | run: | |
358 | | - # Set up .netrc so that bazel can authenticate with GitHub to have higher rate limits for fetching dependencies. |
359 | | - touch ~/.netrc |
360 | | - chmod 600 ~/.netrc |
361 | | - echo "machine github.com login x-access-token password ${{ github.token }}" > ~/.netrc |
362 | | - echo "machine api.github.com login x-access-token password ${{ github.token }}" >> ~/.netrc |
363 | | - echo "Current GitHub API rate limits:" |
364 | | -
|
365 | | - # Show how close we are to the limits |
366 | | - curl -s --netrc https://api.github.com/rate_limit | \ |
367 | | - jq -r '.resources.core | "Rate limit remaining: \(.remaining)/\(.limit) (resets at \(.reset | strftime("%Y-%m-%d %H:%M:%S %Z")))"' |
368 | | -
|
369 | 362 | mkdir -p /tmp/zig-cache |
370 | 363 |
|
371 | 364 | bazel \ |
@@ -504,6 +497,7 @@ jobs: |
504 | 497 | if: ${{ github.event_name != 'merge_group' }} |
505 | 498 | steps: |
506 | 499 | - *checkout |
| 500 | + - uses: ./.github/actions/netrc |
507 | 501 | - name: "Node Name" |
508 | 502 | run: | |
509 | 503 | echo "::notice::Node Name: ${NODE_NAME}" |
@@ -637,6 +631,7 @@ jobs: |
637 | 631 | timeout-minutes: 90 |
638 | 632 | steps: |
639 | 633 | - *checkout |
| 634 | + - uses: ./.github/actions/netrc |
640 | 635 | - name: Run Bazel Build All No Cache |
641 | 636 | uses: ./.github/actions/bazel |
642 | 637 | with: |
@@ -688,13 +683,18 @@ jobs: |
688 | 683 |
|
689 | 684 | check-pull-request-bazel-targets: |
690 | 685 | name: Check PULL_REQUEST_BAZEL_TARGETS |
691 | | - runs-on: ubuntu-latest |
| 686 | + runs-on: |
| 687 | + labels: dind-small |
| 688 | + container: *container-setup |
692 | 689 | timeout-minutes: 30 |
693 | 690 | steps: |
694 | 691 | - name: Checkout |
695 | 692 | uses: actions/checkout@v4 |
| 693 | + - uses: ./.github/actions/netrc |
696 | 694 | - name: Check PULL_REQUEST_BAZEL_TARGETS |
697 | | - run: ./ci/scripts/targets.py check |
| 695 | + uses: ./.github/actions/bazel |
| 696 | + with: |
| 697 | + run: ./ci/scripts/targets.py check |
698 | 698 |
|
699 | 699 | # only run on pull-request event - they are also triggered from schedule-daily.yml |
700 | 700 | pocket-ic-tests-windows: |
@@ -724,6 +724,7 @@ jobs: |
724 | 724 | filters: | |
725 | 725 | container-run: |
726 | 726 | - '.github/workflows/ci-pr-only.yml' |
| 727 | + - '.github/workflows/container-autobuild.yml' |
727 | 728 | - 'ci/container/**' |
728 | 729 | - name: Test Container Run |
729 | 730 | if: | |
|
0 commit comments