Sha256: 7c3e58482228b95ed268bbff428748f13e8e4c6db4a59e4daa5268c60193e06d

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

name: build
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-20.04
    strategy:
      matrix:
        ruby: [ '2.5', '2.6', '2.7' ]
    env:
      LIBTORCH_VERSION: 1.7.1
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby ${{ matrix.ruby }}
        uses: actions/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - uses: actions/cache@v2
        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
      - name: Build and test with Rake
        run: |
          gem install bundler
          bundle config build.torch-rb --with-torch-dir=$HOME/libtorch
          bundle install
          bundle exec rake

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rumale-torch-0.1.0 .github/workflows/build.yml