Skip to content

Bump bytes from 1.10.1 to 1.11.1 in the cargo group across 1 directory #297

Bump bytes from 1.10.1 to 1.11.1 in the cargo group across 1 directory

Bump bytes from 1.10.1 to 1.11.1 in the cargo group across 1 directory #297

Workflow file for this run

name: build
on: pull_request
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
#ruby-version: ['3.2', '3.3', '3.4', '4.0']
ruby-version: ['4.0']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
tmp
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
# # Configure AWS credentials for S3 access
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-central-1
# # Download HuggingFace cache from S3
# - name: Sync HuggingFace cache from S3
# run: |
# echo "Downloading HuggingFace cache from S3..."
# aws s3 sync s3://red-candle-hf-cache/cache/ ~/.cache/huggingface/ --quiet
# echo "Cache downloaded successfully"
# echo "Cache size: $(du -sh ~/.cache/huggingface | cut -f1)"
# echo "Models cached: $(ls -d ~/.cache/huggingface/hub/models--* 2>/dev/null | wc -l)"
# # Set offline mode since we have all models
# echo "HF_HUB_OFFLINE=1" >> $GITHUB_ENV
# echo "Offline mode enabled - no HuggingFace API calls will be made"
# - name: Display Memory Usage
# run: free -h
# - name: Display Disk Space Before Test
# run: df -h
- name: Compile native extension
run: bundle exec rake compile
- name: Run specs
run: bundle exec rspec
# - name: Run specs
# run: |
# # HF_HUB_OFFLINE is already set by S3 sync step
# # This ensures no HuggingFace API calls during tests
# echo "Running specs with HF_HUB_OFFLINE=$HF_HUB_OFFLINE"
# echo "Ruby version: ${{ matrix.ruby-version }}"
# bundle exec rspec
# - name: Display Disk Space After Test
# run: df -h
# - run: bundle exec yard --readme README.md --markup markdown --markup-provider redcarpet