Ruby support #1

Open
jaroslaw wants to merge 165 commits from ruby into main
Showing only changes of commit 472d03bc38 - Show all commits

View file

@ -2,9 +2,9 @@ name: Rust
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -16,9 +16,19 @@ jobs:
RUSTFLAGS: -D warnings RUSTFLAGS: -D warnings
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1 - name: Install Ruby
with: env:
ruby-version: '3.4' CC: clang
run: |
url="https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz"
mkdir ruby_src
curl -sSL $url | tar -xz --directory=./ruby_src
cd ruby_src
mkdir build && cd build
mkdir /rubies
../configure --without-shared --prefix="/rubies/ruby-3.4"
make install
echo /rubies/ruby-3.4/ruby/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