Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #195 from V-Sekai/avoid-spam
Browse files Browse the repository at this point in the history
Avoid spam
  • Loading branch information
fire authored Oct 25, 2024
2 parents 2b1006d + d046fae commit 36f0f60
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
actions: write
container:
image: fedora:39
env:
Expand All @@ -37,20 +38,22 @@ jobs:

- name: Cache SCons cache
uses: actions/cache@v4
if: always()
with:
path: |
.scons_cache
emsdk
osxcross
jdk
android_sdk
vulkan_sdk
mingw
key: ${{ runner.os }}-scons-${{ matrix.platform }}-${{ matrix.target }}
path: |
.scons_cache
emsdk
osxcross
jdk
android_sdk
vulkan_sdk
mingw
key: ${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${{ matrix.platform }}-${{ matrix.target }}
restore-keys: |
${{ runner.os }}-scons-${{ matrix.platform }}-${{ matrix.target }}
${{ runner.os }}-scons-
${{ runner.os }}
${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${{ matrix.platform }}-${{ matrix.target }}
${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${{ matrix.platform }}
${{ matrix.platform }}-${{ matrix.target }}
${{ matrix.platform }}
- uses: bencherdev/bencher@main

Expand Down Expand Up @@ -78,7 +81,7 @@ jobs:
bencher run \
--project 'v-sekai-world' \
--adapter shell_hyperfine \
--branch '${{ github.head_ref }}' \
--branch '${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}' \
--testbed ubuntu-latest \
--threshold-measure latency \
--threshold-test t_test \
Expand All @@ -89,6 +92,7 @@ jobs:
--err \
--token '${{ secrets.BENCHER_API_TOKEN }}' \
--github-actions '${{ secrets.GITHUB_TOKEN }}' \
--ci-only-on-alert \
--file results.json \
"hyperfine --show-output --runs 1 --export-json results.json 'just $PLATFORM_ARGS && just build-platform-target ${{ matrix.platform }} ${{ matrix.target }}'"
- name: Upload Artifacts
Expand Down

0 comments on commit 36f0f60

Please sign in to comment.