-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Export conda environment.yml (#2003)
Co-authored-by: Joshua L. Adelman <joshua.adelman@gmail.com> Co-authored-by: Ruben Arts <ruben@prefix.dev>
- Loading branch information
1 parent
db022c7
commit dc9b79e
Showing
13 changed files
with
664 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 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,74 @@ | ||
name: "Test exports" | ||
|
||
on: | ||
workflow_call: | ||
|
||
|
||
jobs: | ||
test-export: | ||
name: ${{ matrix.arch.name }} - Export Tests | ||
runs-on: ${{ matrix.arch.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
# Linux | ||
- { | ||
target: x86_64-unknown-linux-musl, | ||
os: ubuntu-20.04, | ||
name: "Linux", | ||
} | ||
# MacOS | ||
- { target: x86_64-apple-darwin, os: macos-13, name: "MacOS-x86" } | ||
- { target: aarch64-apple-darwin, os: macos-14, name: "MacOS-arm" } # macOS-14 is the ARM chipset | ||
# # Windows | ||
# - { | ||
# target: x86_64-pc-windows-msvc, | ||
# os: windows-latest, | ||
# extension: .exe, | ||
# name: "Windows", | ||
# } | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v4 | ||
- name: setup micromamba | ||
uses: mamba-org/setup-micromamba@v1.8.1 | ||
- name: Download binary from build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: pixi-${{ matrix.arch.target }}${{ matrix.arch.extension }} | ||
path: pixi_bin | ||
- name: Debug | ||
run: | | ||
pwd | ||
- name: Setup unix binary, add to github path | ||
if: matrix.arch.name != 'Windows' | ||
run: | | ||
mv pixi_bin/pixi-${{ matrix.arch.target }} pixi_bin/pixi | ||
chmod a+x pixi_bin/pixi | ||
echo "$(pwd)/pixi_bin" >> $GITHUB_PATH | ||
- name: Create Directory and Move Executable | ||
if: matrix.arch.name == 'Windows' && matrix.arch.target == 'x86_64-pc-windows-msvc' | ||
run: | | ||
New-Item -ItemType Directory -Force -Path "D:\.pixi" | ||
Move-Item -Path "pixi_bin/pixi-${{ matrix.arch.target }}${{ matrix.arch.extension }}" -Destination "D:\.pixi\pixi.exe" | ||
shell: pwsh | ||
- name: Add to PATH | ||
if: matrix.arch.name == 'Windows' && matrix.arch.target == 'x86_64-pc-windows-msvc' | ||
run: echo "D:\.pixi" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_PATH | ||
shell: pwsh | ||
- name: Verify and Use Executable | ||
if: matrix.arch.name == 'Windows' && matrix.arch.target == 'x86_64-pc-windows-msvc' | ||
run: | | ||
echo "Current PATH: $env:PATH" | ||
pixi --version | ||
shell: pwsh | ||
- name: Help | ||
run: pixi --help | ||
- name: Info | ||
run: pixi info | ||
- name: Install pixi | ||
run: pixi install -v | ||
- name: Test export | ||
shell: bash | ||
run: bash tests/test_export.sh |
This file contains 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 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.