Skip to content

build(deps): bump mozilla-actions/sccache-action from 0.0.5 to 0.0.6 … #85

build(deps): bump mozilla-actions/sccache-action from 0.0.5 to 0.0.6 …

build(deps): bump mozilla-actions/sccache-action from 0.0.5 to 0.0.6 … #85

Workflow file for this run

name: Deploy
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ github.ref != 'refs/heads/main' }}"
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
CACHE_TIMEOUT_MINUTES: 5
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: sccache
CC: sccache clang
CXX: sccache clang++
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup sccache
uses: mozilla-actions/[email protected]
timeout-minutes: "${{ fromJSON(env.CACHE_TIMEOUT_MINUTES) }}"
continue-on-error: true
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- uses: sigoden/install-binary@v1
with:
repo: WebAssembly/binaryen
name: wasm-opt
- name: Install worker-build
run: cargo install --locked worker-build
- name: Dry Run
if: github.ref != 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
command: deploy --dry-run
- name: Publish
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}