Skip to content

Commit

Permalink
Update actions to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
zwzz2019 committed Sep 20, 2024
1 parent f3c845f commit 0c0844a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
uses: actions/checkout@v3

- name: Set Up the Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Download distribution files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
4 changes: 2 additions & 2 deletions .github/workflows/build_whl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -45,7 +45,7 @@ jobs:
docker run -e BUILD_DOCKER_ENV=1 -e CUDACXX=/usr/local/cuda-11.3/bin/nvcc -e PATH="/opt/rh/devtoolset-9/root/usr/bin:$PATH" -e LD_LIBRARY_PATH="/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:$LD_LIBRARY_PATH" -v ${{ github.workspace }}:/workspace/BMTrain -i pytorch/manylinux-cuda113:latest /bin/bash -c "cd /workspace/BMTrain;/opt/python/cp${version}*/bin/pip install build; /opt/python/cp${version}*/bin/python -m build .;for file in dist/*-linux_x86_64.whl; do mv \"\$file\" \"\${file//-linux_x86_64/-manylinux2014_x86_64}\"; done"
- name: Archive distribution files
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: dist
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set Up the Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Install twine
run: python -m pip install twine

- name: Download distribution files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
uses: actions/checkout@v3

- name: Set Up the Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: Download distribution files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand Down

0 comments on commit 0c0844a

Please sign in to comment.