Skip to content

Commit

Permalink
Speed up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jun 20, 2024
1 parent ee2a0fa commit 0ccbb2c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.79
- run: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo build --workspace

Expand All @@ -39,6 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo build --workspace
- run: cargo test --workspace
Expand All @@ -63,6 +65,7 @@ jobs:
with:
toolchain: nightly
components: clippy
- run: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml
- run: sudo apt install libgtk-3-dev libxdo-dev
- run: cargo clippy --workspace -- -D warnings

Expand All @@ -89,15 +92,15 @@ jobs:
cross: false,
command: "test",
args: "--all --tests",
setup: ""
setup: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml
}
- {
target: x86_64-apple-darwin,
os: macos-latest,
cross: false,
command: "test",
args: "--all --tests",
setup: ""
setup: perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml
}
- {
target: x86_64-unknown-linux-gnu,
Expand All @@ -111,7 +114,8 @@ jobs:
libgtk-3-dev \
libudev-dev \
libpango1.0-dev \
libxdo-dev"
libxdo-dev;
perl -pi.bak -e 's/opt-level = 2/opt-level = 0/g' Cargo.toml"
}

steps:
Expand Down

0 comments on commit 0ccbb2c

Please sign in to comment.