Skip to content

Dropped support for Ruby < 3.1 #37

Dropped support for Ruby < 3.1

Dropped support for Ruby < 3.1 #37

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
BUNDLE_BUILD__TORCH___RB: "--with-torch-dir=/home/runner/libtorch"
LIBTORCH_VERSION: 2.4.0
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/libtorch
key: libtorch-${{ env.LIBTORCH_VERSION }}
id: cache-libtorch
- name: Download LibTorch
if: steps.cache-libtorch.outputs.cache-hit != 'true'
run: |
cd ~
wget -q -O libtorch.zip https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-$LIBTORCH_VERSION%2Bcpu.zip
unzip -q libtorch.zip
- run: sudo apt-get update && sudo apt-get install sox libsox-dev libsox-fmt-all
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true
- uses: actions/cache@v4
with:
path: ~/data
key: data
- run: mkdir -p ~/data
- run: bundle exec rake compile -- --with-torch-dir=$HOME/libtorch
- run: bundle exec rake test