Compare commits
No commits in common. "build-test" and "main" have entirely different histories.
build-test
...
main
2 changed files with 24 additions and 44 deletions
34
.github/actions/ruby_install.yml
vendored
34
.github/actions/ruby_install.yml
vendored
|
|
@ -1,34 +0,0 @@
|
||||||
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
|
|
||||||
34
.github/workflows/rust.yml
vendored
34
.github/workflows/rust.yml
vendored
|
|
@ -14,19 +14,33 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: -D warnings
|
RUSTFLAGS: -D warnings
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
ruby_version: ["3.4.4"]
|
|
||||||
sys:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
rust_toolchain: stable
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/ruby_install
|
- name: Cache Ruby
|
||||||
|
id: cache-ruby
|
||||||
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
ruby-version: ${{ matrix.ruby-version }}
|
path: rubies
|
||||||
os: ${{ matrix.sys.os }}
|
key: ${{ runner.os }}-ruby
|
||||||
|
- name: Install Ruby
|
||||||
|
if: steps.cache-ruby.outputs.cache-hit != 'true'
|
||||||
|
env:
|
||||||
|
CC: clang
|
||||||
|
run: |
|
||||||
|
url="https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz"
|
||||||
|
prefix=`pwd`/rubies/ruby-3.4
|
||||||
|
mkdir rubies
|
||||||
|
mkdir ruby_src
|
||||||
|
curl -sSL $url | tar -xz
|
||||||
|
cd ruby-3.4.4
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
../configure --without-shared --prefix=$prefix
|
||||||
|
make install
|
||||||
|
- name: Add Ruby to PATH
|
||||||
|
run: |
|
||||||
|
prefix=`pwd`/rubies/ruby-3.4
|
||||||
|
echo $prefix/bin >> $GITHUB_PATH
|
||||||
- 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