Skip to content

Commit d0c6769

Browse files
Remove deprecated macos12 and add macos15 (#153)
1 parent 16a92ba commit d0c6769

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

.github/workflows/clippy_build_test.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -16,79 +16,79 @@ jobs:
1616
msrv:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: taiki-e/install-action@cargo-hack
21-
- run: cargo hack check --rust-version --workspace --all-targets --ignore-private
19+
- uses: actions/checkout@v4
20+
- uses: taiki-e/install-action@cargo-hack
21+
- run: cargo hack check --rust-version --workspace --all-targets --ignore-private
2222

2323
build:
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
matrix:
27-
os: [ ubuntu-latest, macos-12, macos-13, macos-14 ]
28-
rust: [stable, beta, 1.72.0] # Minimum Rust Version Supported = 1.72.0
29-
experimental: [false]
27+
os: [ ubuntu-latest, macos-13, macos-14, macos-15 ]
28+
rust: [ stable, beta, 1.72.0 ] # Minimum Rust Version Supported = 1.72.0
29+
experimental: [ false ]
3030
include:
3131
- os: ubuntu-latest
3232
rust: nightly
3333
experimental: true
34-
- os: macos-12
35-
rust: nightly
36-
experimental: true
3734
- os: macos-13
3835
rust: nightly
3936
experimental: true
4037
- os: macos-14
4138
rust: nightly
4239
experimental: true
40+
- os: macos-15
41+
rust: nightly
42+
experimental: true
4343

4444
continue-on-error: ${{ matrix.experimental }}
4545

4646
steps:
47-
- uses: actions/checkout@v2
48-
49-
- name: Install toolchain
50-
uses: actions-rs/toolchain@v1
51-
with:
52-
profile: minimal
53-
toolchain: ${{ matrix.rust }}
54-
override: true
55-
components: clippy
56-
57-
- name: InstallLinuxDependencies
58-
if: runner.os == 'Linux'
59-
run: |
60-
sudo apt-get update && sudo apt-get -y install lcov
61-
62-
- name: InstallMacDependencies
63-
if: runner.os == 'macOS'
64-
run: brew install lcov
65-
66-
- name: ConfigureCoverage
67-
if: matrix.rust == 'stable'
68-
run: |
69-
cargo install grcov
70-
rustup component add llvm-tools-preview
71-
echo RUSTFLAGS="-C instrument-coverage" >> "$GITHUB_ENV"
72-
echo LLVM_PROFILE_FILE="libproc-%p-%m.profraw" >> "$GITHUB_ENV"
73-
74-
- name: Run clippy (installed toolchain version as per matrix)
75-
run: |
76-
rustc --version
77-
cargo clippy --all --tests --no-deps --all-targets --all-features -- --warn clippy::pedantic -D warnings
78-
79-
- name: Run Tests on Linux
80-
if: runner.os == 'Linux'
81-
run: env "PATH=$PATH" cargo test
82-
83-
- name: Run Tests as Root on Mac
84-
if: runner.os == 'macOS'
85-
run: sudo env "PATH=$PATH" cargo test
86-
87-
- name: UploadCoverage
88-
if: matrix.rust == 'stable'
89-
run: |
90-
grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o coverage.info
91-
lcov --remove coverage.info lcov --ignore-errors unused '/Applications/*' 'target/debug/build/**' 'target/release/build/**' '/usr*' '**/errors.rs' '**/build.rs' 'examples/**' '*tests/*' -o coverage.info
92-
bash <(curl -s https://codecov.io/bash) -f coverage.info
47+
- uses: actions/checkout@v2
48+
49+
- name: Install toolchain
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
profile: minimal
53+
toolchain: ${{ matrix.rust }}
54+
override: true
55+
components: clippy
56+
57+
- name: InstallLinuxDependencies
58+
if: runner.os == 'Linux'
59+
run: |
60+
sudo apt-get update && sudo apt-get -y install lcov
61+
62+
- name: InstallMacDependencies
63+
if: runner.os == 'macOS'
64+
run: brew install lcov
65+
66+
- name: ConfigureCoverage
67+
if: matrix.rust == 'stable'
68+
run: |
69+
cargo install grcov
70+
rustup component add llvm-tools-preview
71+
echo RUSTFLAGS="-C instrument-coverage" >> "$GITHUB_ENV"
72+
echo LLVM_PROFILE_FILE="libproc-%p-%m.profraw" >> "$GITHUB_ENV"
73+
74+
- name: Run clippy (installed toolchain version as per matrix)
75+
run: |
76+
rustc --version
77+
cargo clippy --all --tests --no-deps --all-targets --all-features -- --warn clippy::pedantic -D warnings
78+
79+
- name: Run Tests on Linux
80+
if: runner.os == 'Linux'
81+
run: env "PATH=$PATH" cargo test
82+
83+
- name: Run Tests as Root on Mac
84+
if: runner.os == 'macOS'
85+
run: sudo env "PATH=$PATH" cargo test
86+
87+
- name: UploadCoverage
88+
if: matrix.rust == 'stable'
89+
run: |
90+
grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o coverage.info
91+
lcov --remove coverage.info lcov --ignore-errors unused '/Applications/*' 'target/debug/build/**' 'target/release/build/**' '/usr*' '**/errors.rs' '**/build.rs' 'examples/**' '*tests/*' -o coverage.info
92+
bash <(curl -s https://codecov.io/bash) -f coverage.info
9393
9494

0 commit comments

Comments
 (0)