Skip to content

feat(wasm-gen): create config for precise sys-calls #798

feat(wasm-gen): create config for precise sys-calls

feat(wasm-gen): create config for precise sys-calls #798

Workflow file for this run

name: PR
on:
pull_request:
# branches: [master, vara-stage-1, vara-stage-2, vara-stage-3]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
TERM: xterm-256color
BINARYEN_VERSION: version_111
jobs:
status:
runs-on: ubuntu-latest
outputs:
cache: ${{ steps.check-commit-message.outputs.cache }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check Commit Message
id: check-commit-message
run: |
MESSAGE=$(git show -s --format=%s)
CACHE=true
if [[ $MESSAGE == *"[skip-cache]"* ]]; then
CACHE=""
fi
echo "cache: ${CACHE}"
echo "cache=${CACHE}" >> $GITHUB_OUTPUT
- name: Set sccache path
if: ${{ steps.check-commit-message.outputs.cache }}
run: |
sccache_path="/mnt/sccache/$(echo ${GITHUB_REF#refs/heads/} | tr / _)"
echo "cache=$sccache_path" >> $GITHUB_OUTPUT
check:
needs: status
uses: ./.github/workflows/check.yml
with:
cache: ${{ needs.status.outputs.cache }}
build:
needs: status
if: >-
contains(github.event.pull_request.labels.*.name, 'A0-pleasereview')
|| contains(github.event.pull_request.labels.*.name, 'A4-insubstantial')
|| contains(github.event.pull_request.labels.*.name, 'A2-mergeoncegreen')
uses: ./.github/workflows/build.yml
with:
cache: ${{ needs.status.outputs.cache }}
macos: ${{ contains(github.event.pull_request.labels.*.name, 'E2-forcemacos') }}