Ruby support #1
1 changed files with 19 additions and 7 deletions
26
.github/workflows/book.yml
vendored
26
.github/workflows/book.yml
vendored
|
|
@ -2,24 +2,36 @@ name: Book
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # To push a branch
|
contents: write # To push a branch
|
||||||
pages: write # To push to a GitHub Pages site
|
pages: write # To push to a GitHub Pages site
|
||||||
id-token: write # To update the deployment status
|
id-token: write # To update the deployment status
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- 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"
|
||||||
|
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
|
||||||
|
echo $prefix/bin >> $GITHUB_PATH
|
||||||
- name: Install latest mdbook
|
- name: Install latest mdbook
|
||||||
run: |
|
run: |
|
||||||
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
|
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue