Bump github/codeql-action from 4.37.7 to 4.37.8 #2265
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go But With Current Dependencies | |
| 'on': | |
| push: null | |
| schedule: | |
| - cron: 51 11 * * * | |
| workflow_dispatch: null | |
| jobs: | |
| build: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| submodules: true | |
| - name: Install Dependencies | |
| run: sudo apt-get update && sudo apt-get -y install graphviz imagemagick libasound2-dev | |
| libgl-dev libgles-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev | |
| libxxf86vm-dev strip-nondeterminism xvfb | |
| - name: Set up Go | |
| uses: actions/setup-go@v7 | |
| with: | |
| go-version: stable | |
| check-latest: true | |
| - name: Remove Module Replacements | |
| run: sed -i -e "s,^replace ,//replace ," go.mod | |
| - name: Update | |
| run: make mod-update | |
| - name: Build | |
| run: make BUILDTYPE=fsrelease | |
| env: | |
| AAAAXY_BUILD_USE_VERSION_FILE: true | |
| AAAAXY_DIFF_ASSETS: true | |
| AAAAXY_GENERATE_ASSETS: true | |
| GOTOOLCHAIN: local | |
| - name: Vet | |
| run: make vet | |
| - name: Test | |
| run: 'xvfb-run scripts/github-action-benchmark.sh "Any% linux-amd64-current" | |
| benchmark.txt scripts/regression-test-demo.sh linux-amd64 "your time: 0:21:47.250; | |
| your speedrun categories: Any%;" ./aaaaxy assets/demos/_anypercent.dem' | |
| - name: Undo Update | |
| run: git reset --hard | |
| - name: Archive Results | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: regression-test-results-benchmark-linux-amd64 | |
| path: 'assets/demos/*.dem.*.log | |
| assets/demos/*.dem.*.png | |
| ' | |
| - name: Gather System Info | |
| run: | | |
| set -x | |
| export AZURE_VMSIZE=$(curl -s --connect-timeout 5 -H "Metadata:true" "http://169.254.169.254/metadata/instance/compute/vmSize?api-version=2021-02-01&format=text" || true) | |
| CPU_DATA=$(lscpu -J | jq -r ' | |
| (.lscpu | map({(.field | rtrimstr(":")): .data}) | add) as $cpu | |
| | { | |
| cpu_model: $cpu["Model name"], | |
| cpu_cores: $cpu["CPU(s)"], | |
| cpu_bogomips: $cpu["BogoMIPS"] | |
| } | @json | |
| ') | |
| export CPU_MODEL=$(echo "$CPU_DATA" | jq -r '.cpu_model') | |
| export CPU_CORES=$(echo "$CPU_DATA" | jq -r '.cpu_cores') | |
| export CPU_BOGOMIPS=$(echo "$CPU_DATA" | jq -r '.cpu_bogomips') | |
| jq '.[].extra = "azure_vmsize: \(env.AZURE_VMSIZE)\ncpu_model: \(env.CPU_MODEL)\ncpu_cores: \(env.CPU_CORES)\ncpu_bogomips: \(env.CPU_BOGOMIPS)"' benchmark.txt > benchmark.json | |
| - name: Store Benchmark result | |
| if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | |
| || github.event_name == 'schedule' }} | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: Any% linux-amd64-current | |
| tool: customSmallerIsBetter | |
| output-file-path: benchmark.json | |
| gh-pages-branch: gh-pages | |
| benchmark-data-dir-path: dev/bench | |
| auto-push: false | |
| alert-threshold: 145% | |
| alert-comment-cc-users: '@divVerent' | |
| max-items-in-chart: 90 | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Diff Benchmark Commit | |
| if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | |
| || github.event_name == 'schedule' }} | |
| run: | | |
| git show gh-pages > bench.patch | |
| - name: Upload Benchmark Results | |
| if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | |
| || github.event_name == 'schedule' }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: bench-current | |
| path: bench.patch | |
| if-no-files-found: error | |
| upload-results: | |
| if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name | |
| == 'workflow_dispatch' && github.ref == 'refs/heads/main') || github.event_name | |
| == 'schedule' }} | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: gh-pages | |
| - name: Clean Up | |
| run: | | |
| rm -f bench-* | |
| - name: Download Results | |
| uses: actions/download-artifact@v8 | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Add Results | |
| run: | | |
| git apply --reject bench-*/*.patch || true | |
| - name: Commit and Push | |
| run: | | |
| git commit -a -m"Update go-current benchmark results for commit ${GITHUB_SHA}." | |
| git push |