Skip to content

Commit

Permalink
ci: Use lukka/get-cmake
Browse files Browse the repository at this point in the history
Replace our own (unmaintained) install-cmake action,
with the maintained action from lukka.
This fixes deprecation warnings in CI due to
the deprecation of node16.
  • Loading branch information
jschwe committed Mar 7, 2024
1 parent 6e2740f commit 366066c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: ${{ inputs.cmake }}
ninja: 1.10.0
cmakeVersion: "${{ inputs.cmake }}"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: ${{ matrix.cmake }}
ninja: 1.10.0
cmakeVersion: "${{ matrix.cmake }}"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -127,10 +127,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: ${{ matrix.cmake }}
ninja: 1.10.0
cmakeVersion: "${{ matrix.cmake }}"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
Expand All @@ -151,10 +151,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: 3.22.6
ninja: 1.10.0
cmakeVersion: "~3.22.0"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
Expand Down Expand Up @@ -232,10 +232,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: ${{ matrix.cmake }}
ninja: 1.10.0
cmakeVersion: "${{ matrix.cmake }}"
ninjaVersion: "~1.10.0"
# Install cbindgen before Rust to use recent default Rust version.
- name: Install cbindgen
run: cargo install cbindgen
Expand Down Expand Up @@ -283,10 +283,10 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: 3.22.6
ninja: 1.10.0
cmakeVersion: "~3.22.0"
ninjaVersion: "~1.10.0"
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
Expand Down Expand Up @@ -322,10 +322,10 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: 3.22.6
ninja: 1.10.0
cmakeVersion: "~3.22.0"
ninjaVersion: "~1.10.0"
# Install cbindgen before Rust to use recent default Rust version.
- name: Install cbindgen
run: cargo install cbindgen
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/visual_studio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install CMake
uses: corrosion-rs/install-cmake@v2
uses: lukka/get-cmake@519de0c7b4812477d74976b2523a9417f552d126
with:
cmake: ${{ inputs.cmake }}
ninja: 1.10.0
cmakeVersion: "${{ inputs.cmake }}"
ninjaVersion: "~1.10.0"
- name: Install Rust
id: install_rust
uses: dtolnay/rust-toolchain@master
Expand Down

0 comments on commit 366066c

Please sign in to comment.