Skip to content

Merge pull request #17 from yaroslavyaroslav/github-actions-update #2

Merge pull request #17 from yaroslavyaroslav/github-actions-update

Merge pull request #17 from yaroslavyaroslav/github-actions-update #2

Workflow file for this run

name: Setup env
on:
workflow_call:
push:
branches:
- main
- github-action-update
paths-ignore:
- "**/*.md"
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
jobs:
setup-macos:
runs-on: macos-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "1.77"
override: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Build
run: cargo build
- name: Cache build
uses: actions/cache/save@v4
with:
key: ${{ github.sha }}-setup-macos
path: |
~/.cargo