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

Consider exporting dart path into environment variable #43

Closed
DRSchlaubi opened this issue Sep 2, 2021 · 5 comments · Fixed by #44
Closed

Consider exporting dart path into environment variable #43

DRSchlaubi opened this issue Sep 2, 2021 · 5 comments · Fixed by #44

Comments

@DRSchlaubi
Copy link

DRSchlaubi commented Sep 2, 2021

It would be helpful to export the dart sdk path into a variable like DART_HOME so the actions can find it

Currently, you can use this

env:
  - DART_SDK: ${{ runner.tool_cache }}/dart-sdk/
@mit-mit
Copy link
Member

mit-mit commented Oct 8, 2021

This is now available in the main channel; @DRSchlaubi could you give uses: dart-lang/setup-dart@7e4ec4f1811e09ce8f339b4d3044220ca799e6c6 a try and let me know if that works as expected?

@mit-mit
Copy link
Member

mit-mit commented Oct 11, 2021

Tested this in https://github.com/dart-lang/setup-dart/actions/runs/1328348805

Note that on windows, you need to use bash to see the variable:

      - name: Print DART_HOME
        shell: bash
        run: echo "Dart SDK installed in $DART_HOME"

@mit-mit
Copy link
Member

mit-mit commented Oct 11, 2021

Now available in dart-lang/setup-dart@v1.3. For sample output see #45

@DRSchlaubi
Copy link
Author

Okay thanks I'll test it

@DRSchlaubi
Copy link
Author

Seems to work

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

Successfully merging a pull request may close this issue.

2 participants