Skip to content

Commit

Permalink
Bump actions versions (huggingface#1669)
Browse files Browse the repository at this point in the history
* Update docs-check.yml

Bump actions/setup-python to v5
Bump python-version to 3.12 (default on ubuntu-latest)
Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained

* Update node-release.yml

Bump actions/setup-python to v5
Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4
Bump actions/setup-node to v4
Bump actions/upload-artifact to v4
Bump actions/download-artifact to v4

* Update node.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4
Bump actions/setup-node to v4

* Update python-release-conda.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump conda-incubator/setup-miniconda to v3

* Update python-release.yml

Bump actions/setup-python to v5
Bump actions/download-artifact to v4

* Update rust-release.yml

Switch actions-rs/toolchain to dtolnay/rust-toolchain as the former one is no longer maintained
Bump actions/cache to v4

* Update stale.yml

Bump actions/stale to v9

* Update python.yml

Bump actions/setup-python to v5
  • Loading branch information
tinyboxvk authored Nov 1, 2024
1 parent 6ade8c2 commit 6c15458
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 36 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ jobs:
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.12

- name: Install dependencies
run: pip install sphinx sphinx_rtd_theme setuptools-rust

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Build tokenizers
working-directory: ./bindings/python
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/node-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,20 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
- if: matrix.os == 'ubuntu-latest'
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/

- name: Cache Cargo Registry
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}

- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn
Expand All @@ -61,11 +59,11 @@ jobs:
strip -x *.node
- name: Install Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
path: ${{ env.APP_NAME }}bindings/node/*.node
Expand All @@ -78,7 +76,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
check-latest: true
Expand All @@ -88,7 +86,7 @@ jobs:
working-directory: ./bindings/node
run: yarn install
- name: Download all artifacts
uses: actions/download-artifact@v4.1.7
uses: actions/download-artifact@v4
with:
path: ./bindings/node/artifacts
- name: Move artifacts
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,21 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy

# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/

- name: Cache Cargo Registry
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}

- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install dependencies
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/python-release-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ jobs:
strategy:
matrix:
os: [windows-latest, macos-latest]
# 3.11 not available on Conda yet.
python: ["3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python }}
Expand All @@ -32,9 +31,7 @@ jobs:
run: conda info

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Setup conda env
shell: bash -l {0}
Expand Down Expand Up @@ -101,9 +98,7 @@ jobs:
conda info
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Setup conda env
shell: bash -l {0}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: ${{ matrix.python-architecture || 'x64' }}
Expand Down Expand Up @@ -155,12 +155,12 @@ jobs:
- uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.12"
architecture: x64

- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
path: ./bindings/python/dist
merge-multiple: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:


- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x86
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
args: cargo-audit

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11
architecture: "x64"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Cache Cargo Registry
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ubuntu-latest-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
days-before-stale: 30
Expand Down

0 comments on commit 6c15458

Please sign in to comment.