Skip to content

Commit

Permalink
simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghan-microsoft committed Dec 31, 2024
1 parent 96777c8 commit c0913f0
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,7 @@ jobs:

- name: Update environment.yaml with Python ${{ matrix.python-version }}
run: |
case "$(uname -s)" in
Darwin*)
sed -i '' "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
;;
Linux*)
sed -i "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
;;
esac
sed -i.bak "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
cat environment.yaml
- name: Set up Micromamba
Expand Down Expand Up @@ -71,14 +64,7 @@ jobs:

- name: Update environment.yaml with Python ${{ matrix.python-version }}
run: |
case "$(uname -s)" in
Darwin*)
sed -i '' "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
;;
Linux*)
sed -i "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
;;
esac
sed -i.bak "s/- python=3.9/- python=${{ matrix.python-version }}/" environment.yaml
cat environment.yaml
- name: Restore build artifacts
Expand Down

0 comments on commit c0913f0

Please sign in to comment.