Skip to content

Commit

Permalink
ci: update github actions
Browse files Browse the repository at this point in the history
to avoid warnings about node 16
  • Loading branch information
flavorjones committed Apr 10, 2024
1 parent 3255e95 commit efb39d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: build source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
Expand All @@ -34,7 +34,7 @@ jobs:
bundle exec rake gem
- name: Upload source gem
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gem-ruby
path: test/rcd_test/pkg/rcd_test-?.?.?.gem # e.g. rcd_test-1.0.0.gem
Expand Down Expand Up @@ -67,14 +67,14 @@ jobs:
- platform: x86_64-linux-musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true

- name: Fetch docker buildx layer cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: tmp/build-cache
key: ${{ runner.os }}-${{ matrix.platform }}-buildx-${{ github.sha }}
Expand All @@ -100,7 +100,7 @@ jobs:
bundle exec rake gem:${{ matrix.platform }}
- name: Upload native gem
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gem-${{ matrix.platform }}
path: test/rcd_test/pkg/*-*-*.gem
Expand All @@ -117,7 +117,7 @@ jobs:
- if: matrix.static
name: Upload static native gem
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gem-${{ matrix.platform }}-static
path: test/rcd_test/pkg/*-*-*.gem
Expand All @@ -132,7 +132,7 @@ jobs:
- if: matrix.alias
name: Upload native gem ${{ matrix.alias }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: gem-${{ matrix.alias }}
path: test/rcd_test/pkg/*-*-*.gem
Expand All @@ -147,12 +147,12 @@ jobs:
ruby: ["3.3", "3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4"]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Download source gem
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-ruby
- name: Test source gem
Expand All @@ -178,12 +178,12 @@ jobs:
- { ruby: "2.4", rubygems: "3.3.26" }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Download gem-${{ matrix.platform }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
- name: Test gem-${{ matrix.platform }}
Expand Down Expand Up @@ -237,9 +237,9 @@ jobs:
- { platform: x86-linux-musl, docker_platform: "--platform=linux/386" }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download gem-${{ matrix.platform }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
- name: Run tests
Expand Down Expand Up @@ -295,7 +295,7 @@ jobs:
platform: x64-mingw-ucrt
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -304,7 +304,7 @@ jobs:
ruby --version
gem env
- name: Download gem-${{ matrix.platform }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
- name: Test gem-${{ matrix.platform }}
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
platform: x64-mingw-ucrt
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
Expand All @@ -356,7 +356,7 @@ jobs:
ruby --version
gem env
- name: Download gem-${{ matrix.platform }}-static
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}-static
- name: Test gem-${{ matrix.platform }}-static
Expand Down Expand Up @@ -393,9 +393,9 @@ jobs:
dockerfile: alpine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download gem-${{ matrix.platform }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: gem-${{ matrix.platform }}
- name: Build ${{ matrix.from_image }} image
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- x86_64-linux-musl
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use cache from primary pipeline
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: tmp/build-cache
key: ${{runner.os}}-${{matrix.platform}}-buildx-${{github.sha}}
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
# move build cache and remove outdated layers
rm -rf tmp/build-cache
mv tmp/build-cache-new tmp/build-cache
- uses: docker/login-action@v2
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
Expand Down

0 comments on commit efb39d2

Please sign in to comment.