Skip to content

Commit

Permalink
Exclude some paths from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 8, 2024
1 parent 9ae8750 commit 25b38b5
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 48 deletions.
98 changes: 51 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ name: CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
branches: ["main"]
paths-ignore:
- "archived/**"
- "README.md"
- ".gitignore"
pull_request:

env:
Expand All @@ -14,61 +18,61 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version: ["3.11"]
fail-fast: false
steps:
- uses: actions/checkout@v4
# with:
# fetch-depth: 2
- uses: extractions/setup-just@v1
with:
just-version: 1.35.0
- name: Install the stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install the nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
# - name: Install latest nextest release
# uses: taiki-e/install-action@nextest
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "8"
- name: Install linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
pkg-config \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
# - name: Check examples
# run: cargo check --examples
# - name: Lint
# run: cargo clippy --workspace -- -D warnings
# - name: Format
# run: cargo +nightly fmt --all --check -- --error-on-unformatted --unstable-features
- name: Run tests
run: just test
- name: Run tests (nightly)
run: just test-nightly
- uses: actions/checkout@v4
# with:
# fetch-depth: 2
- uses: extractions/setup-just@v1
with:
just-version: 1.35.0
- name: Install the stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Install the nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
# - name: Install latest nextest release
# uses: taiki-e/install-action@nextest
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "8"
- name: Install linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
pkg-config \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
# - name: Check examples
# run: cargo check --examples
# - name: Lint
# run: cargo clippy --workspace -- -D warnings
# - name: Format
# run: cargo +nightly fmt --all --check -- --error-on-unformatted --unstable-features
- name: Run tests
run: just test
- name: Run tests (nightly)
run: just test-nightly
# - name: Run coverage
# if: runner.os == 'Linux'
# run: |
# rustup component add llvm-tools-preview
# rustup component add llvm-tools-preview
# curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
# ./grcov . --binary-path ./target/debug/deps -s . -t lcov --branch --ignore-not-existing --ignore "../*" --ignore "/*" -o cov.lcov
# - uses: codecov/codecov-action@v4
Expand Down
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ kill NAME:
ps aux|grep {{NAME}}|grep -v grep|grep -v just|awk '{print $2}'|xargs kill -9

status:
watchexec --quiet --no-meta --debounce 500ms --project-origin . -w . --emit-events-to=stdio -- git status
clear
git status

watch:
watchexec --quiet --no-meta --debounce 500ms --project-origin . -w . --emit-events-to=stdio -- just status

# clone-ex:
# #!/usr/bin/env bash
Expand Down

0 comments on commit 25b38b5

Please sign in to comment.