Skip to content

Commit

Permalink
Merge branch 'master' into dw/merge-back-develop-in-master
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Jan 27, 2025
2 parents 0c64141 + cb4c09c commit 0e0f707
Show file tree
Hide file tree
Showing 65 changed files with 1,436 additions and 235 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/saffron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Saffron CI

on:
workflow_dispatch:
pull_request:
push:
branches:
- master

jobs:
run:
name: Run saffron e2e tests

runs-on: ["ubuntu-latest"]

strategy:
matrix:
rust_toolchain_version: ["1.74"]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Use shared Rust toolchain setting up steps
uses: ./.github/actions/toolchain-shared
with:
rust_toolchain_version: ${{ matrix.rust_toolchain_version }}

- name: Apply the Rust smart cacheing
uses: Swatinem/rust-cache@v2

- name: Build the saffron cli binary
run: |
cargo build --release --bin saffron
- name: Run the saffron e2e encoding tests on small lorem file
run: |
./saffron/test-encoding.sh saffron/fixtures/lorem.txt
# Randomly generate an input file between roughly 50MB and 200MB
- name: Run the saffron e2e encoding on large random file
run: |
(base64 /dev/urandom | head -c $(shuf -i 50000000-200000000 -n 1) | tr -dc "A-Za-z0-9 " | fold -w100 > bigfile.txt) 2>/dev/null
RUST_LOG=debug ./saffron/test-encoding.sh bigfile.txt
Loading

0 comments on commit 0e0f707

Please sign in to comment.