Skip to content

Commit

Permalink
switch things around
Browse files Browse the repository at this point in the history
  • Loading branch information
ytausch committed Apr 13, 2024
1 parent b577c0e commit b5539cd
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ jobs:
existing-pixi-bin:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -243,22 +243,22 @@ jobs:
run: |
mkdir -p ~/custom-existing-pixi
echo "~/custom-existing-pixi" >> $GITHUB_PATH
- name: Download pixi binary (Windows)
- name: Download pixi binary (Ubuntu)
run: |
curl -L --output ~/custom-existing-pixi/pixi.exe https://github.com/prefix-dev/pixi/releases/download/v0.14.0/pixi-x86_64-pc-windows-msvc.exe
if: matrix.os == 'windows-latest'
set -o pipefail
curl -L --output ~/custom-existing-pixi/pixi https://github.com/prefix-dev/pixi/releases/download/v0.14.0/pixi-x86_64-unknown-linux-musl
chmod +x ~/custom-existing-pixi/pixi
if: matrix.os == 'ubuntu-latest'
- name: Download pixi binary (macOS)
run: |
set -o pipefail
curl -L --output ~/custom-existing-pixi/pixi https://github.com/prefix-dev/pixi/releases/download/v0.14.0/pixi-x86_64-apple-darwin
chmod +x ~/custom-existing-pixi/pixi
if: matrix.os == 'macos-latest'
- name: Download pixi binary (Ubuntu)
- name: Download pixi binary (Windows)
run: |
set -o pipefail
curl -L --output ~/custom-existing-pixi/pixi https://github.com/prefix-dev/pixi/releases/download/v0.14.0/pixi-x86_64-unknown-linux-musl
chmod +x ~/custom-existing-pixi/pixi
if: matrix.os == 'ubuntu-latest'
curl -L --output ~/custom-existing-pixi/pixi.exe https://github.com/prefix-dev/pixi/releases/download/v0.14.0/pixi-x86_64-pc-windows-msvc.exe
if: matrix.os == 'windows-latest'
- uses: ./
with:
cache: false
Expand All @@ -270,7 +270,7 @@ jobs:
dont-use-existing-pixi-bin:
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand All @@ -280,15 +280,15 @@ jobs:
run: |
mkdir -p ~/custom-existing-pixi
echo "~/custom-existing-pixi" >> $GITHUB_PATH
- name: Prepare fake pixi executable (Windows)
run: |
echo "fake pixi - this should not execute" > ~/custom-existing-pixi/pixi.exe
if: matrix.os == 'windows-latest'
- name: Prepare fake pixi executable
run: |
echo -e '#!/bin/bash\necho "fake pixi - this should not execute"\nexit 1' > ~/custom-existing-pixi/pixi
chmod +x ~/custom-existing-pixi/pixi
if: matrix.os != 'windows-latest'
- name: Prepare fake pixi executable (Windows)
run: |
echo "fake pixi - this should not execute" > ~/custom-existing-pixi/pixi.exe
if: matrix.os == 'windows-latest'
- uses: ./
with:
pixi-version: v0.15.1
Expand Down

0 comments on commit b5539cd

Please sign in to comment.