1313 RUST_TOOLCHAIN : nightly-2024-11-29
1414
1515jobs :
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+
1635 machete :
1736 runs-on : ubuntu-latest
1837
2948 run : |
3049 cargo machete
3150
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-
5151 fmt :
5252 runs-on : ubuntu-latest
5353
6464 run : |
6565 cargo fmt --all -- --check
6666
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
8667
8768 clippy :
8869 runs-on : ubuntu-latest
@@ -100,24 +81,3 @@ jobs:
10081
10182 - name : Clippy check
10283 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