|
| 1 | +name: process perf results no docker custom |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + branch: |
| 6 | + # description: 'Commit to read results from' |
| 7 | + # required: true |
| 8 | + default: 'main' |
| 9 | + #commit_id: |
| 10 | + # description: 'Commit to read results from' |
| 11 | + # required: true |
| 12 | + # default: '5b13c202bbf6a196104ebb440678dd22037b6746' |
| 13 | + #push: |
| 14 | + # branches: |
| 15 | + # - test-perf |
| 16 | +permissions: |
| 17 | + id-token: write |
| 18 | + pages: write |
| 19 | +jobs: |
| 20 | + build: |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + |
| 24 | + - name: Login to GHCR |
| 25 | + uses: meta-introspector/login-action@v1 |
| 26 | + with: |
| 27 | + registry: ghcr.io |
| 28 | + username: ${{ github.actor }} |
| 29 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 30 | + - name: Download a Build Artifact |
| 31 | + uses: meta-introspector/action-download-artifact@v6 |
| 32 | + with: |
| 33 | + workflow_search: true |
| 34 | + #commit: ${{ inputs.commit_id }} |
| 35 | + skip_unpack: true |
| 36 | + path: data |
| 37 | + #workflow: ${{ inputs.workflow }} |
| 38 | + # If no workflow is set and workflow_search set to true, then the most recent workflow matching |
| 39 | + # all other criteria will be looked up instead of using the current workflow |
| 40 | + #workflow_search: false |
| 41 | + # Optional, the status or conclusion of a completed workflow to search for |
| 42 | + # Can be one of a workflow conclusion: |
| 43 | + # "failure", "success", "neutral", "cancelled", "skipped", "timed_out", "action_required" |
| 44 | + # Or a workflow status: |
| 45 | + # "completed", "in_progress", "queued" |
| 46 | + # Use the empty string ("") to ignore status or conclusion in the search |
| 47 | + #workflow_conclusion: success |
| 48 | + # Optional, will get head commit SHA |
| 49 | + #pr: ${{github.event.pull_request.number}} |
| 50 | + # Optional, no need to specify if PR is |
| 51 | + #commit: ${{github.event.pull_request.head.sha}} |
| 52 | + # Optional, will use the specified branch. Defaults to all branches |
| 53 | + branch: ${{ inputs.branch }} |
| 54 | + # Optional, defaults to all types |
| 55 | + #event: push |
| 56 | + # Optional, will use specified workflow run |
| 57 | + # use ${{ github.event.workflow_run.id }} when your action runs in a workflow_run event |
| 58 | + # and wants to download from the triggering workflow run |
| 59 | + #run_id: 1122334455 |
| 60 | + # Optional, run number from the workflow |
| 61 | + #run_number: 34 |
| 62 | + # Optional, uploaded artifact name, |
| 63 | + # will download all artifacts if not specified |
| 64 | + # and extract them into respective subdirectories |
| 65 | + # https://github.com/actions/download-artifact#download-all-artifacts |
| 66 | + # is treated as a regular expression if input name_is_regexp is true |
| 67 | + # will download only those artifacts with a name that matches this regular expression |
| 68 | + # https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions |
| 69 | + #name: artifact_name |
| 70 | + # Optional, name is treated as a regular expression if set true |
| 71 | + #name_is_regexp: true |
| 72 | + # Optional, a directory where to extract artifact(s), defaults to the current directory |
| 73 | + #path: extract_here |
| 74 | + # Optional, defaults to current repo |
| 75 | + #repo: ${{ github.repository }} |
| 76 | + # Optional, check the workflow run to whether it has an artifact |
| 77 | + # then will get the last available artifact from the previous workflow |
| 78 | + # default false, just try to download from the last one |
| 79 | + #check_artifacts: false |
| 80 | + # Optional, search for the last workflow run whose stored an artifact named as in `name` input |
| 81 | + # default false |
| 82 | + #search_artifacts: false |
| 83 | + # Optional, choose to skip unpacking the downloaded artifact(s) |
| 84 | + # default false |
| 85 | + #skip_unpack: false |
| 86 | + |
| 87 | + - name: list |
| 88 | + run: | |
| 89 | + find data |
| 90 | + for x in data/*.zip; |
| 91 | + do unzip $x; |
| 92 | + done |
| 93 | + #unzip data/results.tgz.zip |
| 94 | + for x in *.tar.gz; do |
| 95 | + tar -xzf $x |
| 96 | + done |
| 97 | + for x in *.tgz; do |
| 98 | + tar -xzf $x |
| 99 | + done |
| 100 | + find . |
| 101 | + pushd app/perf-reporting/output/results/ |
| 102 | + tree -H . -o index.html |
| 103 | + # cp index.txt app/perf-reporting/output/results/index.html |
| 104 | + |
| 105 | + - name: Setup Pages |
| 106 | + uses: meta-introspector/configure-pages@v5 |
| 107 | + - name: Upload Artifact |
| 108 | + uses: meta-introspector/upload-pages-artifact@v5 |
| 109 | + with: |
| 110 | + path: 'app/perf-reporting/output/results' |
| 111 | + - name: Deploy to GitHub Pages |
| 112 | + id: deployment |
| 113 | + uses: meta-introspector/deploy-pages@v4.1 |
| 114 | + |
0 commit comments