Skip to content

Add GitHub Actions workflows and configuration for PR agent and TA-Lib installation #8

Add GitHub Actions workflows and configuration for PR agent and TA-Lib installation

Add GitHub Actions workflows and configuration for PR agent and TA-Lib installation #8

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
ruby: ['3.2.3']
runs-on: ${{ matrix.os }}
name: Ruby ${{ matrix.ruby }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install TA-Lib on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
mkdir -p ta-lib
wget -P ta-lib https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib_0.6.4_amd64.deb
sudo dpkg -i ta-lib/ta-lib_0.6.4_amd64.deb
- name: Install TA-Lib on macOS
if: matrix.os == 'macos-latest'
run: brew install ta-lib
- name: Install TA-Lib on Windows
if: matrix.os == 'windows-latest'
run: |
Invoke-WebRequest -Uri "https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-windows-x86_64.msi" -OutFile "ta-lib.msi"
msiexec /i ta-lib.msi /quiet /norestart
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake