mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-22 16:25:30 +00:00
Bump actions versions (#1669)
* 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
This commit is contained in:
8
.github/workflows/docs-check.yml
vendored
8
.github/workflows/docs-check.yml
vendored
@ -14,17 +14,15 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: 3.12
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install sphinx sphinx_rtd_theme setuptools-rust
|
run: pip install sphinx sphinx_rtd_theme setuptools-rust
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Build tokenizers
|
- name: Build tokenizers
|
||||||
working-directory: ./bindings/python
|
working-directory: ./bindings/python
|
||||||
|
16
.github/workflows/node-release.yml
vendored
16
.github/workflows/node-release.yml
vendored
@ -29,22 +29,20 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
- if: matrix.os == 'ubuntu-latest'
|
- if: matrix.os == 'ubuntu-latest'
|
||||||
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: ~/.cargo/registry
|
||||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
||||||
|
|
||||||
- name: Install Node ${{ matrix.node-version }}
|
- name: Install Node ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
cache: yarn
|
cache: yarn
|
||||||
@ -61,11 +59,11 @@ jobs:
|
|||||||
strip -x *.node
|
strip -x *.node
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: bindings-${{ matrix.settings.target }}
|
name: bindings-${{ matrix.settings.target }}
|
||||||
path: ${{ env.APP_NAME }}bindings/node/*.node
|
path: ${{ env.APP_NAME }}bindings/node/*.node
|
||||||
@ -78,7 +76,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
check-latest: true
|
check-latest: true
|
||||||
@ -88,7 +86,7 @@ jobs:
|
|||||||
working-directory: ./bindings/node
|
working-directory: ./bindings/node
|
||||||
run: yarn install
|
run: yarn install
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v4.1.7
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./bindings/node/artifacts
|
path: ./bindings/node/artifacts
|
||||||
- name: Move artifacts
|
- name: Move artifacts
|
||||||
|
7
.github/workflows/node.yml
vendored
7
.github/workflows/node.yml
vendored
@ -18,22 +18,21 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
# Necessary for now for the cargo cache: https://github.com/actions/cache/issues/133#issuecomment-599102035
|
||||||
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
- run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: ~/.cargo/registry
|
||||||
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: latest
|
node-version: latest
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
11
.github/workflows/python-release-conda.yml
vendored
11
.github/workflows/python-release-conda.yml
vendored
@ -14,7 +14,6 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macos-latest]
|
os: [windows-latest, macos-latest]
|
||||||
# 3.11 not available on Conda yet.
|
|
||||||
python: ["3.8", "3.9", "3.10", "3.11"]
|
python: ["3.8", "3.9", "3.10", "3.11"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -22,7 +21,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install miniconda
|
- name: Install miniconda
|
||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v3
|
||||||
with:
|
with:
|
||||||
auto-update-conda: true
|
auto-update-conda: true
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
@ -32,9 +31,7 @@ jobs:
|
|||||||
run: conda info
|
run: conda info
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Setup conda env
|
- name: Setup conda env
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
@ -101,9 +98,7 @@ jobs:
|
|||||||
conda info
|
conda info
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Setup conda env
|
- name: Setup conda env
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
6
.github/workflows/python-release.yml
vendored
6
.github/workflows/python-release.yml
vendored
@ -100,7 +100,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: set up python
|
- name: set up python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
architecture: ${{ matrix.python-architecture || 'x64' }}
|
architecture: ${{ matrix.python-architecture || 'x64' }}
|
||||||
@ -155,12 +155,12 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.12"
|
python-version: "3.12"
|
||||||
architecture: x64
|
architecture: x64
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4.1.7
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: ./bindings/python/dist
|
path: ./bindings/python/dist
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
4
.github/workflows/python.yml
vendored
4
.github/workflows/python.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
architecture: x86
|
architecture: x86
|
||||||
@ -70,7 +70,7 @@ jobs:
|
|||||||
args: cargo-audit
|
args: cargo-audit
|
||||||
|
|
||||||
- name: Install Python
|
- name: Install Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
architecture: "x64"
|
architecture: "x64"
|
||||||
|
6
.github/workflows/rust-release.yml
vendored
6
.github/workflows/rust-release.yml
vendored
@ -16,12 +16,10 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
|
|
||||||
- name: Cache Cargo Registry
|
- name: Cache Cargo Registry
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/registry
|
path: ~/.cargo/registry
|
||||||
key: ubuntu-latest-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
key: ubuntu-latest-cargo-registry-${{ hashFiles('**/Cargo.toml') }}
|
||||||
|
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
|||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v8
|
- uses: actions/stale@v9
|
||||||
with:
|
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.'
|
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
|
days-before-stale: 30
|
||||||
|
Reference in New Issue
Block a user