Skip to content

feat: allow skipping the call to 'notify-send' via CLI flag #17

feat: allow skipping the call to 'notify-send' via CLI flag

feat: allow skipping the call to 'notify-send' via CLI flag #17

Workflow file for this run

name: test
on:
push:
branches:
- "main"
- "dev/test-yml"
permissions:
contents: read
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rust
shell: bash
run: |
RUST_VERSION="$(grep -oP 'channel = "\K[^"]+' rust-toolchain.toml)"
rustup toolchain install $RUST_VERSION --profile minimal
- uses: extractions/setup-just@v2
- name: Cache sccache
id: cache_sccache
uses: actions/cache@v4
with:
path: /home/runner/.cache/sccache
key: test-sccache-v0-${{ hashFiles('Cargo.lock') }}
- name: Prep sccache
shell: bash
run: |
curl --fail --location "https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" --output /tmp/sccache.tar.gz
tar --directory "/usr/local/bin" -xzvf "/tmp/sccache.tar.gz" --strip-components 1 --wildcards "*/sccache"
rm /tmp/sccache.tar.gz
sudo mkdir -p /home/runner/.cache/sccache
sudo chown -R $(id -u) /home/runner/.cache/sccache
sudo chmod -R u+rwX /home/runner/.cache/sccache
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_DIR=/home/runner/.cache/sccache" >> $GITHUB_ENV
env:
CARGO_UDEPS_VERSION: "v0.1.50"
SCCACHE_VERSION: "v0.8.1"
- name: Run the CI tests
run: |
just ci
sccache -s