Skip to content

Commit

Permalink
💚 Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshuijs committed Oct 21, 2023
1 parent b0af057 commit 8ff538e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,30 @@ jobs:
- name: Create and start virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --user maturin
- name: Change directory
run: |
cd python_genshin_artifact_core
python -m pip install maturin
- name: Build
run: |
source venv/bin/activate
cd python_genshin_artifact_core
maturin develop
- name: Export install file
if: github.ref == 'refs/heads/main'
run: |
source venv/bin/activate
cd python_genshin_artifact_core
maturin build
mv target/wheels/*.whl genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl
- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v2
with:
name: genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl
path: genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl
path: python_genshin_artifact_core/genshin_artifact_core-${{ matrix.python-version }}-${{ matrix.os }}.whl

0 comments on commit 8ff538e

Please sign in to comment.