Skip to content

cicd: use sccache to cache workflow compilation steps #2

cicd: use sccache to cache workflow compilation steps

cicd: use sccache to cache workflow compilation steps #2

Workflow file for this run

name: Build Web
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Run sccache-cache only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
uses: mozilla-actions/[email protected]
- name: Set Rust caching env vars only on non-release runs
if: github.event_name != 'release' && github.event_name != 'workflow_dispatch'
run: |
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
- uses: actions/checkout@v4
- uses: redhat-actions/buildah-build@v2
with:
image: web
layers: false
containerfiles: |
Dockerfile