bump
This commit is contained in:
parent
31e218f488
commit
d27b2ffa9a
2 changed files with 38 additions and 29 deletions
34
.github/actions/ruby_install.yml
vendored
Normal file
34
.github/actions/ruby_install.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: "Install Ruby"
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
ruby-version:
|
||||||
|
required: true
|
||||||
|
os:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Setup env
|
||||||
|
run: |
|
||||||
|
echo "PATH=/opt/rubies/${{ inputs.ruby_version }}/bin:$PATH" >> $GITHUB_ENV
|
||||||
|
echo "GEM_HOME=~/.gem/ruby/${{ inputs.ruby_version }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: ⚡ Cache
|
||||||
|
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
/opt/rubies/${{ inputs.ruby_version }}
|
||||||
|
~/.gem/ruby/${{ inputs.ruby_version }}
|
||||||
|
key: rb-sys-ruby-static-${{ inputs.os }}-${{ inputs.ruby_version }}
|
||||||
|
|
||||||
|
- name: 🔘 Build static ruby
|
||||||
|
working-directory: /tmp
|
||||||
|
run: |
|
||||||
|
if [ -d /opt/rubies/${{inputs.ruby_version }} ]; then
|
||||||
|
echo "Ruby ${{ inputs.ruby_version }} already installed, skipping build"
|
||||||
|
else
|
||||||
|
git clone https://github.com/rbenv/ruby-build.git
|
||||||
|
PREFIX=/usr/local sudo -E ./ruby-build/install.sh
|
||||||
|
RUBY_CONFIGURE_OPTS="--disable-shared --disable-install-doc --disable-install-rdoc" sudo -E ruby-build ${{ matrix.ruby_version }} /opt/rubies/${{ matrix.ruby_version }}
|
||||||
|
fi
|
||||||
33
.github/workflows/rust.yml
vendored
33
.github/workflows/rust.yml
vendored
|
|
@ -17,41 +17,16 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
ruby_version: ["3.2.2"]
|
ruby_version: ["3.4.4"]
|
||||||
sys:
|
sys:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
rust_toolchain: stable
|
rust_toolchain: stable
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: oxidize-rb/actions/setup-ruby-and-rust@v1
|
- uses: ./.github/actions/ruby_install
|
||||||
with:
|
with:
|
||||||
ruby-version: none
|
ruby-version: ${{ matrix.ruby-version }}
|
||||||
rustup-toolchain: ${{ matrix.sys.rust_toolchain }}
|
os: ${{ matrix.sys.os }}
|
||||||
cargo-cache: "sccache"
|
|
||||||
|
|
||||||
- name: Setup env
|
|
||||||
run: |
|
|
||||||
echo "PATH=/opt/rubies/${{ matrix.ruby_version }}/bin:$PATH" >> $GITHUB_ENV
|
|
||||||
echo "GEM_HOME=~/.gem/ruby/${{ matrix.ruby_version }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: ⚡ Cache
|
|
||||||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
/opt/rubies/${{ matrix.ruby_version }}
|
|
||||||
~/.gem/ruby/${{ matrix.ruby_version }}
|
|
||||||
key: rb-sys-ruby-static-${{ matrix.sys.os }}-${{ matrix.ruby_version }}
|
|
||||||
|
|
||||||
- name: 🔘 Build static ruby
|
|
||||||
working-directory: /tmp
|
|
||||||
run: |
|
|
||||||
if [ -d /opt/rubies/${{matrix.ruby_version }} ]; then
|
|
||||||
echo "Ruby ${{ matrix.ruby_version }} already installed, skipping build"
|
|
||||||
else
|
|
||||||
git clone https://github.com/rbenv/ruby-build.git
|
|
||||||
PREFIX=/usr/local sudo -E ./ruby-build/install.sh
|
|
||||||
RUBY_CONFIGURE_OPTS="--disable-shared --disable-install-doc --disable-install-rdoc" sudo -E ruby-build ${{ matrix.ruby_version }} /opt/rubies/${{ matrix.ruby_version }}
|
|
||||||
fi
|
|
||||||
- name: Clippy
|
- name: Clippy
|
||||||
run: cargo clippy --all-features --verbose -- -D warnings
|
run: cargo clippy --all-features --verbose -- -D warnings
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue