Skip to content

Commit

Permalink
attempt to cache rust
Browse files Browse the repository at this point in the history
  • Loading branch information
LynithDev committed Oct 18, 2024
1 parent 1e50eee commit 528a68a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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' }}
Expand All @@ -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 changes: 8 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 528a68a

Please sign in to comment.