Skip to content

Commit

Permalink
fix: make CI more stable (#1291)
Browse files Browse the repository at this point in the history
Requires unionlabs/workflows#31

- Use nix eval --json to get around stability issues with nix-eval-jobs
- Directly query cachix using their
[narinfo](https://cachix.org/api/v1/#/default/post_api_v1_cache__name__narinfo)
endpoint
  • Loading branch information
PoisonPhang authored Feb 6, 2024
2 parents 1541616 + 1308d02 commit 2d2d695
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:

jobs:
spell-fmt-check:
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.GITHUB_TOKEN }}
Expand All @@ -27,7 +27,7 @@ jobs:
if: |
!cancelled()
&& (contains(needs.*.result, 'success') || github.event.pull_request.draft == true)
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.GITHUB_TOKEN }}
Expand All @@ -39,7 +39,7 @@ jobs:
if: |
!cancelled()
&& (contains(needs.*.result, 'success') || github.event.pull_request.draft == true)
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.GITHUB_TOKEN }}
Expand All @@ -51,7 +51,7 @@ jobs:
if: |
!cancelled()
&& (contains(needs.*.result, 'success') || github.event.pull_request.draft == true)
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build:
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.github-token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build:
uses: unionlabs/workflows/.github/workflows/build.yml@e79a9aee784f725e9f2622ae86ad77ca2b14138c
uses: unionlabs/workflows/.github/workflows/build.yml@02aec4666e8fe565f1393f5f2e2e6ec27fa6f7cc
secrets:
nixbuild_token: ${{ secrets.nixbuild_token }}
access-tokens: github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@
]) ++ (if pkgs.stdenv.isLinux then [
pkgs.solc
pkgs.foundry-bin
pkgs.sqlx-cli
self'.packages.hasura-cli
self'.packages.sqlx-cli
] else [ ]));
nativeBuildInputs = [ config.treefmt.build.wrapper ]
++ lib.attrsets.attrValues config.treefmt.build.programs;
Expand Down

0 comments on commit 2d2d695

Please sign in to comment.