This is an automated email from the ASF dual-hosted git repository. erickguan pushed a commit to branch erickguan-patch-1 in repository https://gitbox.apache.org/repos/asf/opendal.git
commit bf4611318013024ea1f894038a0876f0c18c731d Author: Erick Guan <[email protected]> AuthorDate: Mon Sep 22 13:07:52 2025 +0200 Fix typo in release_ruby.yml Fixes a typo --- .github/workflows/release_ruby.yml | 98 +++++++++++++++++++++++++++++++++++++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_ruby.yml b/.github/workflows/release_ruby.yml index ea3371b5f..599441d6d 100644 --- a/.github/workflows/release_ruby.yml +++ b/.github/workflows/release_ruby.yml @@ -1,18 +1,57 @@ # Licensed to the Apache Software Foundation (ASF) under one + # or more contributor license agreements. See the NOTICE file + + + # distributed with this work for additional information + + + + + # regarding copyright ownership. The ASF licenses this file + + # to you under the Apache License, Version 2.0 (the + + + + + # "License"); you may not use this file except in compliance + + # with the License. You may obtain a copy of the License at + + + + + + + # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an + + + + # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the + + + + # specific language governing permissions and limitations + + + + + + # under the License. name: Release Ruby Binding @@ -26,8 +65,12 @@ on: - main paths: - ".github/workflows/release_ruby.yml" + + workflow_dispatch: # allow repo collaborators to publish gem + + concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} cancel-in-progress: true @@ -110,17 +153,37 @@ jobs: bundler-cache: true working-directory: bindings/ruby # must repeat because GitHub Actions will not use defaults.run + - name: Linux cross deps if: runner.os == 'Linux' && matrix.platform == 'aarch64-linux' + + run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu - name: Build gem if: runner.os != 'Linux' || matrix.platform != 'aarch64-linux' + + + + run: bundle exec rake native gem # For Linux aarch64, tell Cargo which linker to use + + + + + + - name: Build aarch64-linux gem if: runner.os == 'Linux' && matrix.platform == 'aarch64-linux' + + + + + + + run: | export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc bundle exec rake native gem @@ -145,7 +208,8 @@ jobs: publish: if: >- - (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') || + (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') || + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')) needs: [build, build-native] runs-on: ubuntu-latest @@ -211,3 +275,35 @@ jobs: - name: Clean up credentials if: always() run: git credential-cache exit || true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
