Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a github action that uses fuel.nix to install forc #66

Open
sdankel opened this issue May 30, 2023 · 2 comments
Open

Create a github action that uses fuel.nix to install forc #66

sdankel opened this issue May 30, 2023 · 2 comments

Comments

@sdankel
Copy link
Member

sdankel commented May 30, 2023

This would give us an idea of whether fuel.nix could be a viable replacement for fuelup in CI, in terms of latency to install forc.

@mitchmindtree
Copy link
Contributor

Just for reference, today downstream users should already be able to use tools from fuel.nix in CI actions with something like this:

jobs:
  my-build-job:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: cachix/install-nix-action@v20
        with:
          nix_path: nixpkgs=channel:nixos-unstable
          extra_nix_config: |
            extra-substituters = https://fuellabs.cachix.org
            extra-trusted-public-keys = fuellabs.cachix.org-1:3gOmll82VDbT7EggylzOVJ6dr0jgPVU/KMN6+Kf8qx8=
      - run: nix shell github:fuellabs/fuel.nix#forc-0-39-0
      # Following steps now have `forc` version `0.39.0` available.
      - run: forc build

But yes, it would be great to test latency, and perhaps provide some wrapper action that takes care of the cachix installation with the necessary binary cache etc.

@mitchmindtree
Copy link
Contributor

Another thought w.r.t. latency:

If it turns out that relying directly on the fuellabs cache does take too long, I'd imagine there's some way to provide a docker image that provides forc pre-fetched? I don't have enough docker experience to be sure 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants