Skip to content

Commit

Permalink
Update rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly authored Jul 28, 2024
1 parent 30ede18 commit 4254738
Showing 1 changed file with 35 additions and 14 deletions.
49 changes: 35 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,49 @@
name: Rust
name: Rust CI

on:
push:
branches: [ "main" ]
branches:
- main
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

services:
redis:
image: redis
options: --entrypoint redis-server

steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
- uses: actions/checkout@v2

# Configurar o Rust
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
target: x86_64-unknown-linux-gnu
override: true
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

# Configurar Python
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

# Instalar dependências do Python
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pymupdf
# Configurar Cargo para PyO3
- name: Install PyO3 dependencies
run: sudo apt-get install -y python3-dev

# Construir e testar o projeto
- name: Build and Test
run: cargo test

0 comments on commit 4254738

Please sign in to comment.