Skip to content

Commit c3553b7

Browse files
authored
ci: build issues (#47)
* Edit tomls * Add workflow * Add cfg * Remove caches * Test * Caching changes
1 parent 8380c4e commit c3553b7

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
rust: [nightly, beta, stable]
23-
os: [ubuntu]
22+
rust: [ nightly, beta, stable ]
23+
os: [ ubuntu ]
2424
env:
2525
RUSTFLAGS: --cfg deny_warnings -Dwarnings
2626
timeout-minutes: 45
@@ -32,4 +32,25 @@ jobs:
3232
id: toolchain
3333
with:
3434
toolchain: ${{matrix.rust}}
35-
- run: cargo build --all-features --manifest-path crackers/Cargo.toml
35+
- name: Cache cargo registry
36+
uses: actions/cache@v4
37+
with:
38+
path: ~/.cargo/registry
39+
key: ${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-
42+
${{ runner.os }}-cargo-registry-
43+
44+
- name: Cache target directory
45+
uses: actions/cache@v4
46+
with:
47+
path: target
48+
key: ${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
49+
restore-keys: |
50+
${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}-
51+
${{ runner.os }}-target-
52+
- name: Build crackers
53+
run: cargo build --all-features --manifest-path crackers/Cargo.toml
54+
env:
55+
READ_ONLY_GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_TOKEN }}
56+

.github/workflows/style.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ jobs:
4141
${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-
4242
${{ runner.os }}-cargo-registry-
4343
44-
- name: Cache cargo git index
45-
uses: actions/cache@v4
46-
with:
47-
path: ~/.cargo/git
48-
key: ${{ runner.os }}-cargo-git-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
49-
restore-keys: |
50-
${{ runner.os }}-cargo-git-${{ steps.toolchain.outputs.cachekey }}-
51-
${{ runner.os }}-cargo-git-
52-
5344
- name: Cache target directory
5445
uses: actions/cache@v4
5546
with:

crackers/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[package]
22
name = "crackers"
33
version = "0.1.1"
4+
readme = "../README.md"
45
authors = ["toolCHAINZ"]
56
license = "MIT"
67
rust-version = "1.85.0"

0 commit comments

Comments
 (0)