Remove tag hook #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & release precompiled gems | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # Add/remove platforms as you need | |
| platform: | |
| - x86_64-linux | |
| - aarch64-linux | |
| - x86_64-linux-musl | |
| - x86_64-darwin | |
| - arm64-darwin | |
| - x64-mingw-ucrt | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Sets up both Ruby and Rust for testing/build steps | |
| - uses: oxidize-rb/actions/setup-ruby-and-rust@v1 | |
| with: | |
| ruby-version: "3.3" # match what you test/support | |
| bundler-cache: true | |
| # Build + package platform gems using rb-sys & rake-compiler-dock | |
| - name: Cross-compile gem | |
| uses: oxidize-rb/actions/cross-gem@v1 | |
| with: | |
| platform: ${{ matrix.platform }} | |
| # Optional: pass cargo features to toggle “bundled tesseract” vs system | |
| # cargo-features: "bundled-tesseract" | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: gem-${{ matrix.platform }} | |
| path: pkg/*.gem |