Skip to content

Commit f7ae259

Browse files
authored
Move to rust-toolchain and reusable rust-ci (#114)
* Move to rust-toolchain and reusable rust-ci * Remove dead file
1 parent 21b13a0 commit f7ae259

File tree

3 files changed

+10
-47
lines changed

3 files changed

+10
-47
lines changed

.github/rust-ci-patch.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/rust-ci.yaml

Lines changed: 7 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
# DO NOT EDIT THIS FILE.
2-
# Instead, edit the jsonpatch file (actually YAML) in .github/rust-ci-patch.yaml
3-
# For docs, see github-actions in the IronCoreLabs/depot repo.
4-
51
name: Rust CI
6-
concurrency:
7-
group: ${{ github.workflow }}-${{ github.ref }}
8-
cancel-in-progress: true
92
'on':
103
push:
114
branches:
@@ -14,39 +7,11 @@ concurrency:
147
workflow_dispatch: null
158
schedule:
169
- cron: 0 14 * * 1
17-
env:
18-
MIN_COVERAGE: '24'
1910
jobs:
20-
format:
21-
runs-on: ubuntu-22.04
22-
steps:
23-
- uses: actions/checkout@v3
24-
- uses: IronCoreLabs/rust-toolchain@v1
25-
with:
26-
components: rustfmt
27-
- run: cargo fmt --all -- --check
28-
- name: Install cargo-sort
29-
uses: IronCoreLabs/[email protected]
30-
with:
31-
crate: cargo-sort
32-
accesskey: AKIAU2WBY6VDTC563V7G
33-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
34-
os: ubuntu-22.04
35-
version: latest
36-
- run: cargo sort --check
37-
- name: Cancel workflow
38-
if: failure()
39-
uses: andymckay/[email protected]
40-
clippy:
41-
name: Clippy
42-
runs-on: ubuntu-22.04
43-
steps:
44-
- uses: actions/checkout@v3
45-
- uses: IronCoreLabs/rust-toolchain@v1
46-
with:
47-
components: clippy
48-
- uses: actions-rs/cargo@v1
49-
if: env.clippy_args != ''
50-
with:
51-
command: clippy
52-
args: ${{ env.clippy_args }}
11+
rust-ci:
12+
uses: IronCoreLabs/workflows/.github/workflows/rust-ci.yaml@rust-ci-v0
13+
with:
14+
# only run build, only on the toolchain version
15+
# typescript runs the real tests
16+
test_matrix_include: '[{ rust_version: "", build_only: true }]'
17+
secrets: inherit

rust-toolchain.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[toolchain]
2+
profile = "default"
3+
channel = "1.68.1"

0 commit comments

Comments
 (0)