13
13
RUST_TOOLCHAIN : nightly-2024-11-29
14
14
15
15
jobs :
16
+ docker :
17
+ runs-on : ubuntu-latest
18
+ # if: github.event_name == 'push' && github.ref == 'refs/heads/main'
19
+ steps :
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v4
22
+
23
+ - name : Set up Docker Buildx
24
+ uses : docker/setup-buildx-action@v3
25
+
26
+ - name : Build Docker image
27
+ uses : docker/build-push-action@v5
28
+ with :
29
+ context : .
30
+ push : false
31
+ load : true
32
+ cache-from : type=gha
33
+ cache-to : type=gha,mode=max
34
+
16
35
machete :
17
36
runs-on : ubuntu-latest
18
37
29
48
run : |
30
49
cargo machete
31
50
32
- # test:
33
- # runs-on: ubuntu-latest
34
- #
35
- # steps:
36
- # - name: Checkout repository
37
- # uses: actions/checkout@v4
38
- #
39
- # - uses: actions-rust-lang/setup-rust-toolchain@v1
40
- # with:
41
- # toolchain: ${{ env.RUST_TOOLCHAIN }}
42
- #
43
- # - uses: Swatinem/rust-cache@v2
44
- # with:
45
- # cache-on-failure: true
46
- #
47
- # - name: Run cargo test
48
- # run: |
49
- # cargo test --workspace --all-features
50
-
51
51
fmt :
52
52
runs-on : ubuntu-latest
53
53
64
64
run : |
65
65
cargo fmt --all -- --check
66
66
67
- # docs:
68
- # runs-on: ubuntu-latest
69
- #
70
- # steps:
71
- # - name: Checkout repository
72
- # uses: actions/checkout@v4
73
- #
74
- # - uses: actions-rust-lang/setup-rust-toolchain@v1
75
- # with:
76
- # toolchain: ${{ env.RUST_TOOLCHAIN }}
77
- #
78
- # - uses: Swatinem/rust-cache@v2
79
- # with:
80
- # cache-on-failure: true
81
- # - name: Run cargo doc
82
- # run: |
83
- # cargo doc --workspace --no-deps --all-features
84
- # env:
85
- # RUSTDOCFLAGS: -D warnings
86
67
87
68
clippy :
88
69
runs-on : ubuntu-latest
@@ -100,24 +81,3 @@ jobs:
100
81
101
82
- name : Clippy check
102
83
run : cargo clippy --workspace --benches --tests --examples --all-features -- -D warnings
103
-
104
- # check:
105
- # strategy:
106
- # matrix:
107
- # os: [ubuntu-latest, windows-latest, macos-latest]
108
- # runs-on: ${{ matrix.os }}
109
- # steps:
110
- # - name: Checkout repository
111
- # uses: actions/checkout@v4
112
- #
113
- # - name: Setup Rust toolchain
114
- # uses: actions-rust-lang/setup-rust-toolchain@v1
115
- # with:
116
- # toolchain: ${{ env.RUST_TOOLCHAIN }}
117
- #
118
- # - uses: Swatinem/rust-cache@v2
119
- # with:
120
- # cache-on-failure: true
121
- #
122
- # - name: Cargo check
123
- # run: cargo check --workspace --all-features
0 commit comments