Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Chase committed Dec 19, 2024
1 parent d653a24 commit 1f2bf5e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/actions/bootstrap/action.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
name: Bootstrap
description: Install dependencies.

inputs:
extra_rust_toolchains:
description: "Extra toolchains to install, but aren't used by default"
required: false

runs:
using: "composite"
steps:
Expand All @@ -7,5 +15,7 @@ runs:
shell: bash
- name: Install rust.
uses: ./.github/actions/install_rust
with:
extra_rust_toolchains: ${{ inputs.extra_rust_toolchains }}
- name: Install cairo native.
uses: ./.github/actions/setup_native_deps
10 changes: 8 additions & 2 deletions .github/actions/install_rust/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Bootsrap rust installation
name: Bootstrap rust installation
description: Setup rust environment and its components, also caching the build results.

inputs:
extra_rust_toolchains:
description: "Extra toolchains to install, but aren't used by default"
required: false

runs:
using: "composite"
steps:
Expand All @@ -9,6 +14,7 @@ runs:
cache-base: main(-v[0-9].*)?
inherit-toolchain: true
bins: taplo-cli@0.9.0, cargo-machete
channel: nightly-2024-04-29 # Just install for rustfmt, rust-toolchain.toml overrides it.
# Install additional non-default toolchains (for rustfmt for example), NOP if input omitted.
channel: ${{ inputs.extra_rust_toolchains }}
env:
RUSTFLAGS: "-C link-arg=-fuse-ld=lld"
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:

# Install rust components.
- uses: ./.github/actions/bootstrap
with:
extra_rust_toolchains: nightly-2024-04-29

- name: Setup Python venv
run: |
Expand Down

0 comments on commit 1f2bf5e

Please sign in to comment.