4545 strategy :
4646 matrix :
4747 # os: ["ubuntu-latest", "windows-latest", "macos-latest"]
48- os : ["ubuntu-latest", "macos-latest"]
49- rust : ["stable", "beta"]
5048 include :
5149 - os : ubuntu-latest
52- rust : " nightly "
50+ rust : " stable "
5351 runs-on : ${{ matrix.os }}
5452 steps :
5553 - name : Checkout Repository
@@ -60,14 +58,39 @@ jobs:
6058 toolchain : ${{ matrix.rust }}
6159 - name : Print Cargo Version
6260 run : cargo -V
61+ - name : Install Clippy
62+ run : rustup component add clippy-preview
6363 - name : clippy
6464 run : cargo clippy --verbose -- -D warnings
65- - name : audit
65+ Security :
66+ name : Audit
67+ strategy :
68+ matrix :
69+ # os: ["ubuntu-latest", "windows-latest", "macos-latest"]
70+ include :
71+ - os : ubuntu-latest
72+ rust : " stable"
73+ runs-on : ${{ matrix.os }}
74+ steps :
75+ - name : Checkout Repository
76+ uses : actions/checkout@v6
77+ - name : Install Rust
78+ uses : dtolnay/rust-toolchain@stable
79+ with :
80+ toolchain : ${{ matrix.rust }}
81+ - name : Install cargo-audit
82+ run : cargo install cargo-audit
83+ - name : Print Cargo Version
84+ run : cargo -V
85+ - name : Security Check
6686 run : cargo audit
87+ - uses : EmbarkStudios/cargo-deny-action@v2
88+ with :
89+ command : check bans sources advisories
6790 Create-Release :
6891 name : Create-Release
6992 runs-on : ubuntu-latest
70- needs : ['Test']
93+ needs : ['Test', 'Lint', 'Security' ]
7194 steps :
7295 - uses : actions/checkout@v6
7396 - name : Get the tag name
@@ -136,7 +159,7 @@ jobs:
136159 run : |
137160 cargo build --release --target aarch64-apple-darwin
138161 mv ./target/aarch64-apple-darwin/release/ebook2audiobook ./target/aarch64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosarm
139- gh release upload "$VERSION" ./target/aarch64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosarm
162+ gh release upload "$VERSION" ./target/aarch64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosarm --clobber
140163 - name : Install MacOS x86 toolchain
141164 run : rustup target add x86_64-apple-darwin
142165 - name : Build MacOS x86
@@ -146,5 +169,5 @@ jobs:
146169 run : |
147170 cargo build --release --target x86_64-apple-darwin
148171 mv ./target/x86_64-apple-darwin/release/ebook2audiobook ./target/x86_64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosx86
149- gh release upload "$VERSION" ./target/x86_64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosx86
172+ gh release upload "$VERSION" ./target/x86_64-apple-darwin/release/ebook2audiobook_${{ env.PKG_VERSION }}_macosx86 --clobber
150173 ls -la ./target/x86_64-apple-darwin/release/
0 commit comments