Files
drop/.github/workflows/torrential-ci.yml
T
DecDuckandCopilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> c5a70e6801 Fix archive backend crash (#475)
* Fix archive backend

* Fix overflow bug + add workflow

* Potential fix for pull request finding 'CodeQL / Workflow does not contain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix lint

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-08-21 10:20:14 +10:00

58 lines
1.3 KiB
YAML

name: Torrential CI
on:
push:
branches: [develop]
paths:
- "torrential/**"
- "libraries/droplet/**"
- "libraries/droplet_types/**"
- "libraries/libarchive/**"
- ".github/workflows/torrential-ci.yml"
pull_request:
branches: [develop]
paths:
- "torrential/**"
- "libraries/droplet/**"
- "libraries/droplet_types/**"
- "libraries/libarchive/**"
- ".github/workflows/torrential-ci.yml"
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: torrential
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./torrential -> target"
# Required by the droplet-rs path dependency (libarchive bindings).
- name: Install libarchive
run: |
sudo apt-get update
sudo apt-get install -y libarchive-dev
- name: Build
run: cargo build --all-targets --verbose
- name: Run tests
run: cargo test --verbose