diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 089f71f..0feb7bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Set up Ruby @@ -33,7 +33,7 @@ jobs: bundler-cache: true # runs 'bundle install' and caches installed gems automatically - name: Build gem run: gem build *.gemspec - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: gem path: '*.gem' @@ -43,7 +43,7 @@ jobs: memory-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Set up Ruby @@ -66,7 +66,7 @@ jobs: os: ['ubuntu', 'macos', 'windows'] runs-on: ${{ matrix.os }}-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Set up Ruby @@ -74,7 +74,7 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} # bundler-cache: true - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: gem - name: Install gem diff --git a/.github/workflows/gem-build.yml b/.github/workflows/gem-build.yml index b2d856e..efa07df 100644 --- a/.github/workflows/gem-build.yml +++ b/.github/workflows/gem-build.yml @@ -17,7 +17,7 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Set up Ruby 2.6 @@ -31,7 +31,7 @@ jobs: gem install *.gem bundle install rake test:gem - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: "ruby-gem" path: "*.gem" @@ -47,9 +47,9 @@ jobs: contents: read packages: write container: - image: "ghcr.io/rake-compiler/rake-compiler-dock-image:1.4.0-mri-${{ matrix.platform }}" + image: "ghcr.io/rake-compiler/rake-compiler-dock-image:1.7.0-mri-${{ matrix.platform }}" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Build native gem @@ -57,22 +57,23 @@ jobs: run: | bundle install bundle exec rake gem:${{ matrix.platform }}:build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: "${{ matrix.platform }}-gem" path: pkg/*.gem publish: - if: startsWith(github.ref, 'refs/tags/v') + # if: startsWith(github.ref, 'refs/tags/v') needs: ['build-ruby', 'build-native'] strategy: matrix: platform: ['ruby', 'x86-mingw32', 'x64-mingw-ucrt', 'x64-mingw32', 'x86_64-linux', 'x86_64-darwin', 'arm64-darwin'] runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: "${{ matrix.platform }}-gem" + path: pkg - name: List files run: ls -l pkg # - name: Publish to RubyGems