Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI, upgrade actions/* version. #220

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
name: Test for Node.js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
name: Test for Python
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
Expand All @@ -96,7 +96,7 @@ jobs:
name: Test for Ruby
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
runs-on: ${{ matrix.settings.host }}
name: Test for Java on ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup | Cache Cargo
uses: actions/[email protected]
with:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/release-crate-gem.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: 'Release Crate & RubyGem'
name: "Release Crate & RubyGem"
on:
push:
tags:
- 'v*'
- "v*"
branches:
- release-gem
jobs:
publish_crate:
name: Publish Crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/cargo@v1
if: startsWith(github.ref, 'refs/tags/v')
name: Release Crate
Expand All @@ -33,10 +33,10 @@ jobs:
- aarch64-linux
- x86_64-linux-musl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oxidize-rb/actions/[email protected]
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: true
cargo-cache: true
cargo-vendor: false
Expand All @@ -49,7 +49,7 @@ jobs:
with:
platform: ${{ matrix.ruby-platform }}
working-directory: autocorrect-rb/
ruby-versions: '3.3, 3.2, 3.1' # optional
ruby-versions: "3.3, 3.2, 3.1" # optional

- name: Upload Gem
uses: actions/upload-artifact@v3
Expand All @@ -63,10 +63,10 @@ jobs:
- publish_crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oxidize-rb/actions/[email protected]
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: false
cargo-cache: true
cargo-vendor: true
Expand All @@ -93,7 +93,7 @@ jobs:
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
ruby-version: "3.3"
bundler-cache: true
- uses: actions/download-artifact@v3
with:
Expand All @@ -106,7 +106,7 @@ jobs:

- name: Publish to RubyGem
env:
RUBYGEM_TOKEN: '${{secrets.RUBYGEM_TOKEN}}'
RUBYGEM_TOKEN: "${{secrets.RUBYGEM_TOKEN}}"
working-directory: pkg/
run: |
mkdir -p $HOME/.gem
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
target: aarch64-apple-darwin
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -45,7 +45,7 @@ jobs:
cargo build -p autocorrect-java --release --target ${{ matrix.settings.target }}
mv target/${{ matrix.settings.target }}/release/${{ matrix.settings.lib_prefix }}autocorrect_java${{ matrix.settings.lib_suffix }} autocorrect_java-${{ matrix.settings.target }}${{ matrix.settings.lib_suffix }}
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: jnis
path: autocorrect_java-${{ matrix.settings.target }}${{ matrix.settings.lib_suffix }}
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -65,7 +65,7 @@ jobs:
distribution: "temurin"

- name: Download all artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: jnis
path: ./autocorrect-java/jnis
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ jobs:
- test-linux-x64-gnu-binding
- test-linux-x64-musl-binding
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
target: aarch64
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
target: ${{ matrix.target }}
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand All @@ -80,7 +80,7 @@ jobs:
manylinux: auto
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand All @@ -102,7 +102,7 @@ jobs:
manylinux: auto
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand All @@ -127,7 +127,7 @@ jobs:
manylinux: musllinux_1_2
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand All @@ -153,7 +153,7 @@ jobs:
manylinux: musllinux_1_2
args: --release --out dist -m autocorrect-py/Cargo.toml
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: wheels
path: dist
Expand All @@ -163,7 +163,7 @@ jobs:
runs-on: ubuntu-latest
needs: [macos, windows, linux, linux-cross, musllinux, musllinux-cross]
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: wheels
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
cd -

- name: Deploy | Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
Expand All @@ -144,7 +144,7 @@ jobs:
fetch-depth: 0

- name: Setup | Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
path: release-dist

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Add to your `.github/workflows/ci.yml`
```yml
steps:
- name: Check source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: AutoCorrect
uses: huacnlee/autocorrect-action@main
Expand Down
2 changes: 1 addition & 1 deletion autocorrect-website/src/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ Add to your `.github/workflows/ci.yml`
```yml
steps:
- name: Check source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: AutoCorrect
uses: huacnlee/autocorrect-action@main
Expand Down
Loading