Skip to content
Open
Show file tree
Hide file tree
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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
check:
name: Check code style and run linters
runs-on: ubuntu-latest
env:
CC: gcc-12
CXX: g++-12
NVCC_PREPEND_FLAGS: "-ccbin /usr/bin/g++-12 -allow-unsupported-compiler"
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -57,6 +61,10 @@ jobs:
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- name: Install GCC 12
run: |
sudo apt-get update
sudo apt-get install -y gcc-12 g++-12
- name: Run shellcheck
run: shellcheck ./install-filcrypto
- name: Run cargo fmt
Expand Down Expand Up @@ -100,6 +108,14 @@ jobs:
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- if: runner.os == 'Linux'
name: Install GCC 12 and set environment
run: |
sudo apt-get update
sudo apt-get install -y gcc-12 g++-12
echo "CC=gcc-12" >> $GITHUB_ENV
echo "CXX=g++-12" >> $GITHUB_ENV
echo "NVCC_PREPEND_FLAGS=-ccbin /usr/bin/g++-12 -allow-unsupported-compiler" >> $GITHUB_ENV
- if: runner.os == 'macOS'
run: cd rust && cargo fetch
- name: Build project
Expand Down Expand Up @@ -153,5 +169,9 @@ jobs:
with:
submodules: recursive
ref: ${{ github.event.inputs.ref }}
- name: Install GCC 12
run: |
sudo apt-get update
sudo apt-get install -y gcc-12 g++-12
- name: Build project with `FFI_USE_CUDA_SUPRASEAL=1`
run: FFI_BUILD_FROM_SOURCE=1 FFI_USE_CUDA_SUPRASEAL=1 make
4 changes: 2 additions & 2 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ rayon = "1.10.0"
anyhow = "1.0.97"
serde_json = "1.0.140"
rust-gpu-tools = { version = "0.7", optional = true, default-features = false }
fvm4 = { package = "fvm", version = "~4.7.4", default-features = false, features = ["verify-signature", "nv28-dev"] }
fvm4_shared = { package = "fvm_shared", version = "~4.7.4" }
fvm4 = { package = "fvm", version = "~4.7.3", default-features = false, features = ["verify-signature"] }
fvm4_shared = { package = "fvm_shared", version = "~4.7.3" }
fvm3 = { package = "fvm", version = "~3.13.0", default-features = false }
fvm3_shared = { package = "fvm_shared", version = "~3.13.0" }
fvm2 = { package = "fvm", version = "~2.11.0", default-features = false }
Expand Down