Skip to content

Fix: Disable ureq timeout completely, read until EOF #15

Fix: Disable ureq timeout completely, read until EOF

Fix: Disable ureq timeout completely, read until EOF #15

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
env:
CARGO_TERM_COLOR: always
BINARY_NAME: rax
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libssl-dev pkg-config
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --release --verbose
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --release -- -D warnings
- name: Build .deb package
run: |
chmod +x build-deb.sh
./build-deb.sh
- name: Verify package
run: |
dpkg -I rax_*.deb
dpkg -c rax_*.deb
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: rax-${{ github.sha }}
path: |
target/release/rax
rax_*.deb
retention-days: 7