-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,10 @@ jobs: | |
# Doesn't exist on self-hosted runners | ||
if: matrix.os == 'windows-2022' | ||
|
||
- name: CUDA toolchain | ||
uses: Jimver/[email protected] | ||
if: runner.os == 'Linux' || runner.os == 'Windows' | ||
|
||
- name: Configure cache | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
|
@@ -108,7 +112,13 @@ jobs: | |
- name: cargo clippy | ||
run: | | ||
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features "runtime-benchmarks" -- -D warnings | ||
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features runtime-benchmarks -- -D warnings | ||
if: runner.os == 'macOS' | ||
|
||
- name: cargo clippy | ||
run: | | ||
cargo -Zgitoxide -Zgit clippy --locked --all-targets --features runtime-benchmarks,cuda -- -D warnings | ||
if: runner.os == 'Linux' || runner.os == 'Windows' | ||
|
||
cargo-docs: | ||
runs-on: ${{ fromJson(github.repository_owner == 'autonomys' && '["self-hosted", "ubuntu-20.04-x86-64"]' || '"ubuntu-22.04"') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,12 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-cargo- | ||
- name: CUDA toolchain | ||
uses: Jimver/[email protected] | ||
|
||
# Build the rust crate docs | ||
- name: Build Documentation | ||
run: cargo -Zgitoxide -Zgit doc --all --no-deps --lib | ||
run: cargo -Zgitoxide -Zgit doc --all --no-deps --lib --features cuda | ||
env: | ||
RUSTDOCFLAGS: "-Z unstable-options --enable-index-page" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,10 @@ jobs: | |
echo "PKG_CONFIG_ALLOW_CROSS=true" >> $GITHUB_ENV | ||
if: matrix.build.target == 'aarch64-unknown-linux-gnu' | ||
|
||
- name: CUDA toolchain | ||
uses: Jimver/[email protected] | ||
if: runner.os == 'Linux' || runner.os == 'Windows' | ||
|
||
- name: Configure cache | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | ||
with: | ||
|
@@ -202,6 +206,13 @@ jobs: | |
- name: Build farmer | ||
run: | | ||
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer | ||
if: runner.os == 'macOS' | ||
|
||
- name: Build farmer | ||
run: | | ||
cargo -Zgitoxide -Zgit build --locked -Z build-std --target ${{ matrix.build.target }} --profile production --bin subspace-farmer --features cuda | ||
# TODO: We don't configure CUDA for cross-compilation purposes, hence only x86-64 for now | ||
if: (runner.os == 'Linux' || runner.os == 'Windows') && startsWith(matrix.build.target, 'x86_64') | ||
|
||
- name: Build node | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters