Skip to content

Commit

Permalink
fix(cuda): Fix upstream build issues (#113)
Browse files Browse the repository at this point in the history
* git ignore

* cuda ci task

* pin cuda action version

* clippy fix + metal build

* update action versions

* update time crate

* update risc0 CI toolchain
  • Loading branch information
hashcashier authored Sep 3, 2024
1 parent aa63201 commit 079d1a0
Show file tree
Hide file tree
Showing 19 changed files with 287 additions and 144 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ permissions:
env:
CARGO_TERM_COLOR: always
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RISC0_VERSION: "^0.21"
RISC0_TOOLCHAIN_VERSION: v2024-02-08.1
RISC0_VERSION: "1.0.5"
RISC0_TOOLCHAIN_VERSION: v2024-04-22.0

jobs:
test:
Expand All @@ -29,8 +29,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/rustup@release-0.21
- uses: risc0/risc0/.github/actions/sccache@release-0.21
- uses: risc0/risc0/.github/actions/rustup@v1.0.5
- uses: risc0/risc0/.github/actions/sccache@v1.0.5
- uses: risc0/cargo-install@v1
with:
crate: cargo-binstall
Expand All @@ -40,23 +40,40 @@ jobs:

clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
runs-on: [self-hosted, prod, "${{ matrix.os }}"]
strategy:
fail-fast: false
matrix:
include:
- os: Linux
feature: default
- os: Linux
feature: cuda
- os: macOS
feature: default
- os: macOS
feature: metal
env:
FEATURE: ${{ matrix.feature }}
RISC0_SKIP_BUILD: 1
RISC0_SKIP_BUILD_KERNELS: 1
steps:
- uses: actions/checkout@v4
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/clippy-action@main
with:
reporter: 'github-pr-check'
fail_on_error: true
clippy_flags: --workspace --all-targets -- -Dwarnings
- uses: actions/checkout@v4
- if: matrix.feature == 'cuda'
uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/risc0/.github/actions/[email protected]
- uses: risc0/clippy-action@main
with:
reporter: 'github-pr-check'
fail_on_error: true
clippy_flags: -F $FEATURE --workspace --all-targets -- -Dwarnings

fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: risc0/risc0/.github/actions/rustup@release-0.21
- uses: risc0/risc0/.github/actions/rustup@v1.0.5
- run: cargo fmt --all --check
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ log.txt
*.pb
*.zkp
.idea
*.opc
*.zip
*.bin
*.txt
Loading

0 comments on commit 079d1a0

Please sign in to comment.