Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ on:
env:
# Show colored output in CI.
CARGO_TERM_COLOR: always
# Show full panics.
RUST_BACKTRACE: "full"
# Increase thread stack size to 8 megabytes.
RUST_MIN_STACK: 8000000
# Build commands.
CMD_CLIPPY: cargo clippy --all-features --all-targets -- -D warnings
CMD_TEST: cargo test --all-features
# The folder used to store release files - this will be uploaded.
ARCHIVE: "__ARCHIVE"

Expand Down Expand Up @@ -42,6 +49,20 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy

- name: Install dependencies (Windows)
if: matrix.os == 'windows-2022'
uses: lukka/get-cmake@v3.31.6 # Needed for `randomx-rs`

- name: Download monerod
uses: ./.github/actions/monerod-download

- name: Clippy (fail on warnings)
run: ${{ env.CMD_CLIPPY }}

- name: Test
run: ${{ env.CMD_TEST }}

- name: Build
run: cargo build --release --package cuprated
Expand Down
Loading