Skip to content

Commit

Permalink
Use opt-level = 0 in CI (#79)
Browse files Browse the repository at this point in the history
* Speed up CI

* Use aarch64 target on macos (to match runner architecture)

* Try re-enabling for windows

* Add custom job name for matrix job
  • Loading branch information
nicoburns authored Jun 21, 2024
1 parent cb76ef6 commit 5a4cd26
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 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 @@ -84,22 +87,25 @@ jobs:
matrix:
platform:
- {
name: windows,
target: x86_64-pc-windows-msvc,
os: windows-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-apple-darwin,
name: macos,
target: aarch64-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
}
- {
name: linux,
target: x86_64-unknown-linux-gnu,
os: ubuntu-latest,
cross: false,
Expand All @@ -111,9 +117,12 @@ 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"
}

name: Test (${{ matrix.platform.name }})

steps:
- uses: actions/checkout@v4
- name: install stable
Expand Down Expand Up @@ -143,6 +152,7 @@ jobs:

- name: Setup
run: ${{ matrix.platform.setup }}
shell: bash

- name: test
run: |
Expand Down

0 comments on commit 5a4cd26

Please sign in to comment.