-
Notifications
You must be signed in to change notification settings - Fork 77
Detect and support Linux ARM runners for both Miniconda and Miniforge #387
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2a9ddba
arm64 -> aarch64 on Linux
jaimergp 068e771
husky
jaimergp b071086
Add example 15
jaimergp 6a7987d
Merge branch 'main' into linux-aarch64
jaimergp 60efbd1
13 -> 15
jaimergp 8a6ecee
use constants.IS_LINUX
jaimergp 5e36862
remove workaround in miniconda
jaimergp 046c15f
Merge branch 'main' into linux-aarch64
jezdez cd6515c
husky
jaimergp ef1e283
Merge branch 'linux-aarch64' of github.com:conda-incubator/setup-mini…
jaimergp 19e2dab
Update README.md
jaimergp ba47885
update ids
jaimergp 0705e65
Merge branch 'linux-aarch64' of github.com:conda-incubator/setup-mini…
jaimergp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| name: "Example 15: Linux ARM" | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - "*" | ||
| push: | ||
| branches: | ||
| - "develop" | ||
| - "main" | ||
| - "master" | ||
| schedule: | ||
| # Note that cronjobs run on master/main by default | ||
| - cron: "0 0 * * *" | ||
|
|
||
| jobs: | ||
| example-15: | ||
| # prevent cronjobs from running on forks | ||
| if: | ||
| (github.event_name == 'schedule' && github.repository == | ||
| 'conda-incubator/setup-miniconda') || (github.event_name != 'schedule') | ||
| name: Ex15 (os=${{ matrix.os }} variant=${{ matrix.variant }}) | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: ["ubuntu-24.04-arm"] | ||
| variant: ["Miniforge3", "Miniconda", "no-variant", "empty-with"] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: ./ | ||
| if: matrix.variant == 'Miniforge3' | ||
| id: setup-miniforge | ||
| continue-on-error: true | ||
| with: | ||
| auto-update-conda: true | ||
| miniforge-variant: ${{ matrix.variant }} | ||
| miniforge-version: latest | ||
| - uses: ./ | ||
| if: matrix.variant == 'Miniconda' | ||
| id: setup-miniconda | ||
| continue-on-error: true | ||
| with: | ||
| auto-update-conda: true | ||
| miniconda-version: latest | ||
| - uses: ./ | ||
| if: matrix.variant == 'no-variant' | ||
| id: setup-miniconda-no-variant | ||
| continue-on-error: true | ||
| with: | ||
| miniforge-version: latest | ||
| - uses: ./ | ||
| if: matrix.variant == 'empty-with' | ||
| id: setup-miniconda-empty-with | ||
| continue-on-error: true | ||
| - name: Conda info | ||
| shell: bash -el {0} | ||
| run: conda info | ||
| - name: Conda list | ||
| shell: bash -el {0} | ||
| run: conda list | ||
| - name: Environment | ||
| shell: bash -el {0} | ||
| run: printenv | sort | ||
| - name: Create an environment | ||
| shell: bash -el {0} | ||
| run: conda create -n unused --dry-run zlib | ||
| - name: Run mamba | ||
| if: matrix.variant == 'Miniforge3' | ||
| shell: bash -el {0} | ||
| run: mamba --version | ||
| - name: Install Python | ||
| shell: bash -el {0} | ||
| run: conda install -y python | ||
| - name: Check architecture | ||
| shell: bash -el {0} | ||
| run: | | ||
| python -c "import platform; assert platform.machine() == 'aarch64', platform.machine()" |
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.