attempt to cache rust
This commit is contained in:
parent
1e50eeec79
commit
528a68ab31
2 changed files with 8 additions and 16 deletions
|
|
@ -5,17 +5,10 @@ inputs:
|
|||
description: GitHub token
|
||||
required: false
|
||||
default: ''
|
||||
target:
|
||||
description: Toolchain target triple
|
||||
required: false
|
||||
setup-arg:
|
||||
description: Argument for the system setup script
|
||||
required: false
|
||||
default: ''
|
||||
save-cache:
|
||||
description: Whether or not to save the system cache
|
||||
required: false
|
||||
default: 'false'
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
|
|
@ -43,12 +36,6 @@ runs:
|
|||
|
||||
sudo apt-get remove libunwind-* || true
|
||||
|
||||
- name: Setup Rust and Dependencies
|
||||
uses: ./.github/actions/setup-rust
|
||||
with:
|
||||
target: ${{ inputs.target }}
|
||||
save-cache: ${{ inputs.save-cache }}
|
||||
|
||||
- name: (Linux/macOS) - Setup System
|
||||
shell: bash
|
||||
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
|
||||
|
|
@ -67,7 +54,6 @@ runs:
|
|||
- name: Setup Shared Libraries
|
||||
shell: bash
|
||||
env:
|
||||
TARGET_TRIPLE: ${{ inputs.triple }}
|
||||
GITHUB_TOKEN: ${{ inputs.token }}
|
||||
NODE_ENV: debug
|
||||
run: pnpm prep
|
||||
10
.github/workflows/format.yml
vendored
10
.github/workflows/format.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1))" >> "${GITHUB_ENV}"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Pnpm
|
||||
uses: ./.github/actions/setup-pnpm
|
||||
|
|
@ -38,7 +38,13 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system packages
|
||||
- name: Setup Rust
|
||||
uses: ./.github/actions/setup-rust
|
||||
with:
|
||||
save-cache: true
|
||||
restore-cache: true
|
||||
|
||||
- name: Setup Packages
|
||||
uses: ./.github/actions/setup-system
|
||||
|
||||
- name: Run Clippy
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue