Files
drop/.github/workflows/torrential-ci.yml
T
NicoVIII 3b74063026 Update actions (#483)
* Update actions/checkout consistently to v7

* Update pnpm/action-setup to v6

With pnpm v11 this could and should be replaced with pnpm/setup, I guess.

* Update actions/setup-node consistently to v7

* Update actions/configure-pages to v6

It looks like this should be non-critical, it mainly includes a runtime upgrade to Node 24 as far as I could see that.

* Update actions/cache to v6

* Update docker/metadata-action to v6

I think this is also non-critical and mainly a runtime bump.

* Update docker/login-action to v4

Should also be just the node version bump.

* Update docker/setup-buildx-action to v4

* Update docker/setup-qemu-action to v4

* Update docker/build-push-action to v7

* Update actions/upload-artifact to v7

* Update actions/download-artifact to v8

This is quite a jump and I'm not very familiar with this action. But the changelogs looked more or less not critical, there was only a thing about downloading single artifacts by id in v5, but I think the "No Action Needed If" applies.
2026-08-31 08:23:01 +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@v7
- 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