check #200
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: check | |
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions | |
| permissions: | |
| actions: none | |
| checks: none | |
| contents: read | |
| deployments: none | |
| issues: none | |
| packages: none | |
| pull-requests: none | |
| repository-projects: none | |
| security-events: none | |
| statuses: none | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| runnerName: | |
| required: false | |
| default: ubuntu-latest | |
| type: choice | |
| options: | |
| - ubuntu-latest | |
| - ubuntu-latest-m | |
| - ubuntu-latest-h | |
| forceKernel_mainline: | |
| required: false | |
| default: none | |
| type: choice | |
| options: | |
| - latest | |
| - 6.12. | |
| - none | |
| forceKernel_lts: | |
| required: false | |
| default: 6.12. | |
| type: choice | |
| options: | |
| - latest | |
| - 6.12. | |
| - 6.6. | |
| - 6.1. | |
| - none | |
| skimfast: | |
| type: boolean | |
| default: true | |
| # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
| schedule: | |
| #- cron: '5 1 * * 6' | |
| #- cron: '5 1 * * 2,4' | |
| #- cron: '5 1 * * 2' | |
| - cron: '5 1 * * 4' | |
| #- cron: '25 6 1 * *' | |
| #- cron: '25 2 25 * *' | |
| # https://docs.github.com/en/actions/using-jobs/using-concurrency | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check_lts: | |
| if: ${{ github.event.inputs.forceKernel_lts != 'none' }} | |
| runs-on: ${{ github.event.inputs.runnerName == '' && 'ubuntu-latest' || github.event.inputs.runnerName }} | |
| #runs-on: ubuntu-latest | |
| #runs-on: ubuntu-20.04 | |
| #runs-on: buildjet-2vcpu-ubuntu-2004 | |
| #runs-on: buildjet-64vcpu-ubuntu-2004 | |
| steps: | |
| - name: forceKernel_lts-${{ github.event.inputs.forceKernel_lts }} ______________________________ | |
| shell: bash | |
| run: | | |
| true | |
| - name: users | |
| shell: bash | |
| run: | | |
| sudo -u ubuntu -n bash -c 'sudo -n useradd runner --non-unique -u $UID -g $UID' || true | |
| sudo -u ubuntu -n bash -c 'sudo -n groupadd runner --non-unique -g $UID' || true | |
| sudo -u runner -n bash -c 'sudo -n echo $USER $UID' || true | |
| true | |
| # Apparently may increase buildJet 'runner' to 77GB (instead of 61GB). | |
| # Apparently may increase Github Actions 'runner' to 59GB (instead of 31GB) . | |
| - name: Maximize build space | |
| if: ${{ github.event.inputs.runnerName == 'ubuntu-latest' }} | |
| uses: easimon/maximize-build-space@master | |
| with: | |
| #root-reserve-mb: 1625 | |
| root-reserve-mb: 6000 | |
| #temp-reserve-mb: 50 | |
| temp-reserve-mb: 6000 | |
| swap-size-mb: 2 | |
| #remove-dotnet: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-dotnet: 'true' | |
| #remove-android: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-android: 'true' | |
| #remove-haskell: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-haskell: 'true' | |
| #remove-codeql: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-codeql: 'true' | |
| #remove-docker-images: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-docker-images: 'true' | |
| - uses: actions/checkout@v2 | |
| - name: _getMinimal_cloud | |
| shell: bash | |
| run: | | |
| ./ubiquitous_bash.sh _getMinimal_cloud | |
| timeout-minutes: 90 | |
| - name: _fetchKernel-lts | |
| shell: bash | |
| run: | | |
| export skimfast=${{ inputs.skimfast }} | |
| echo skimfast $skimfast | |
| [[ "${{ github.event.inputs.forceKernel_lts }}" != "" ]] && [[ "${{ github.event.inputs.forceKernel_lts }}" != "latest" ]] && export forceKernel_lts="${{ github.event.inputs.forceKernel_lts }}" | |
| export current_force_bindepOnly="true" | |
| ./ubiquitous_bash.sh _fetchKernel-lts | |
| - name: _build_cloud_lts | |
| shell: bash | |
| run: | | |
| export skimfast=${{ inputs.skimfast }} | |
| echo skimfast $skimfast | |
| [[ "${{ github.event.inputs.forceKernel_lts }}" != "" ]] && [[ "${{ github.event.inputs.forceKernel_lts }}" != "latest" ]] && export forceKernel_lts="${{ github.event.inputs.forceKernel_lts }}" | |
| export current_keepFetch="true" | |
| export current_force_bindepOnly="true" | |
| ./ubiquitous_bash.sh _build_cloud_prepare | |
| ./ubiquitous_bash.sh _build_cloud_lts | |
| timeout-minutes: 300 | |
| #- name: _export_cloud_lts | |
| #shell: bash | |
| #run: | | |
| #./ubiquitous_bash.sh _export_cloud_lts | |
| #timeout-minutes: 90 | |
| # https://github.com/marketplace/actions/debugging-with-tmate | |
| # $RUNNER_WORKSPACE | |
| # rclone config --config="/rclone.conf" | |
| # sudo touch /continue | |
| # bash -i | |
| # source ~/.bashrc | |
| # Type 'q' at the 'Web shell' or use SSH . | |
| #- name: Setup tmate session | |
| #if: ${{ failure() }} | |
| #uses: mxschmitt/action-tmate@v3 | |
| ## ssh -i <path-to-key> <tmate-connection-string> | |
| #with: | |
| #limit-access-to-actor: true | |
| #timeout-minutes: 5 | |
| #- name: artifacts | |
| #uses: actions/upload-artifact@v3 | |
| #with: | |
| #name: build-lts | |
| #path: | | |
| #./_local/_export/linux-lts-amd64-debian.tar.gz | |
| #timeout-minutes: 90 | |
| # For vbox kernel module make . | |
| - name: _getMost_ubuntu24-VBoxManage | |
| shell: bash | |
| run: | | |
| #! ./ubiquitous_bash.sh _getMost && exit 1 | |
| #true | |
| #! sudo -n apt-get -y clean && exit 1 | |
| #! ./ubiquitous_bash.sh _getMost_debian11_aptSources && exit 1 | |
| #sudo -n apt-get update | |
| #! sudo -n apt-get -d install -y virtualbox-7.0 && exit 1 | |
| ! sudo -n ./ubiquitous_bash.sh _getMost_ubuntu24-VBoxManage && exit 1 | |
| df -h | |
| df -h / | |
| - name: _check_vbox-lts | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_vbox-lts | |
| rc=$? # capture the script’s exit code | |
| echo "$rc" | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| timeout-minutes: 300 | |
| - name: _check_nv-lts-series535p | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_nv-lts-series535p | |
| rc=$? # capture the script’s exit code | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| timeout-minutes: 300 | |
| - name: _check_nv-lts-legacy470 | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_nv-lts-legacy470 | |
| rc=$? # capture the script’s exit code | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| timeout-minutes: 300 | |
| check_mainline: | |
| if: ${{ github.event.inputs.forceKernel_mainline != 'none' }} | |
| runs-on: ${{ github.event.inputs.runnerName == '' && 'ubuntu-latest' || github.event.inputs.runnerName }} | |
| #runs-on: ubuntu-latest | |
| #runs-on: ubuntu-20.04 | |
| #runs-on: buildjet-2vcpu-ubuntu-2004 | |
| #runs-on: buildjet-64vcpu-ubuntu-2004 | |
| steps: | |
| - name: forceKernel_mainline-${{ github.event.inputs.forceKernel_mainline }} ______________________________ | |
| shell: bash | |
| run: | | |
| true | |
| - name: users | |
| shell: bash | |
| run: | | |
| sudo -u ubuntu -n bash -c 'sudo -n useradd runner --non-unique -u $UID -g $UID' || true | |
| sudo -u ubuntu -n bash -c 'sudo -n groupadd runner --non-unique -g $UID' || true | |
| sudo -u runner -n bash -c 'sudo -n echo $USER $UID' || true | |
| true | |
| # Apparently may increase buildJet 'runner' to 77GB (instead of 61GB). | |
| # Apparently may increase Github Actions 'runner' to 59GB (instead of 31GB) . | |
| - name: Maximize build space | |
| if: ${{ github.event.inputs.runnerName == 'ubuntu-latest' }} | |
| uses: easimon/maximize-build-space@master | |
| with: | |
| #root-reserve-mb: 1625 | |
| root-reserve-mb: 6000 | |
| #temp-reserve-mb: 50 | |
| temp-reserve-mb: 6000 | |
| swap-size-mb: 2 | |
| #remove-dotnet: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-dotnet: 'true' | |
| #remove-android: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-android: 'true' | |
| #remove-haskell: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-haskell: 'true' | |
| #remove-codeql: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-codeql: 'true' | |
| #remove-docker-images: ${{ github.event.inputs.runnerName != 'ubuntu-latest-h' }} | |
| remove-docker-images: 'true' | |
| - uses: actions/checkout@v2 | |
| - name: _getMinimal_cloud | |
| shell: bash | |
| run: | | |
| ./ubiquitous_bash.sh _getMinimal_cloud | |
| timeout-minutes: 90 | |
| - name: _fetchKernel-mainline | |
| shell: bash | |
| run: | | |
| export skimfast=${{ inputs.skimfast }} | |
| echo skimfast $skimfast | |
| [[ "${{ github.event.inputs.forceKernel_mainline }}" != "" ]] && [[ "${{ github.event.inputs.forceKernel_mainline }}" != "latest" ]] && export forceKernel_mainline="${{ github.event.inputs.forceKernel_mainline }}" | |
| export current_force_bindepOnly="true" | |
| ./ubiquitous_bash.sh _fetchKernel-mainline | |
| - name: _build_cloud_mainline | |
| shell: bash | |
| run: | | |
| export skimfast=${{ inputs.skimfast }} | |
| echo skimfast $skimfast | |
| [[ "${{ github.event.inputs.forceKernel_mainline }}" != "" ]] && [[ "${{ github.event.inputs.forceKernel_mainline }}" != "latest" ]] && export forceKernel_mainline="${{ github.event.inputs.forceKernel_mainline }}" | |
| export current_keepFetch="true" | |
| export current_force_bindepOnly="true" | |
| ./ubiquitous_bash.sh _build_cloud_prepare | |
| ./ubiquitous_bash.sh _build_cloud_mainline | |
| timeout-minutes: 300 | |
| #- name: _export_cloud_mainline | |
| #shell: bash | |
| #run: | | |
| #./ubiquitous_bash.sh _export_cloud_mainline | |
| #timeout-minutes: 90 | |
| # https://github.com/marketplace/actions/debugging-with-tmate | |
| # $RUNNER_WORKSPACE | |
| # rclone config --config="/rclone.conf" | |
| # sudo touch /continue | |
| # bash -i | |
| # source ~/.bashrc | |
| # Type 'q' at the 'Web shell' or use SSH . | |
| #- name: Setup tmate session | |
| #if: ${{ failure() }} | |
| #uses: mxschmitt/action-tmate@v3 | |
| ## ssh -i <path-to-key> <tmate-connection-string> | |
| #with: | |
| #limit-access-to-actor: true | |
| #timeout-minutes: 5 | |
| #- name: artifacts | |
| #uses: actions/upload-artifact@v3 | |
| #with: | |
| #name: build-mainline | |
| #path: | | |
| #./_local/_export/linux-mainline-amd64-debian.tar.gz | |
| #timeout-minutes: 90 | |
| # For vbox kernel module make . | |
| - name: _getMost_ubuntu24-VBoxManage | |
| shell: bash | |
| run: | | |
| #! ./ubiquitous_bash.sh _getMost && exit 1 | |
| #true | |
| #! sudo -n apt-get -y clean && exit 1 | |
| #! ./ubiquitous_bash.sh _getMost_debian11_aptSources && exit 1 | |
| #sudo -n apt-get update | |
| #! sudo -n apt-get -d install -y virtualbox-7.0 && exit 1 | |
| ! sudo -n ./ubiquitous_bash.sh _getMost_ubuntu24-VBoxManage && exit 1 | |
| df -h | |
| df -h / | |
| - name: _check_vbox-mainline | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_vbox-mainline | |
| rc=$? # capture the script’s exit code | |
| echo "$rc" | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| #export currentKernelPath=$(ls -d -1 "$scriptLocal"/mainline/linux-* | sort -n | head -n 1) | |
| #echo 'currentKernelPath= '"$currentKernelPath" | |
| #cd /usr/share/virtualbox/src/vboxhost | |
| ##make clean | |
| #make -C "$currentKernelPath" M=`pwd` -j $(nproc) | |
| #if ! [[ -e "$safeTmp"/vboxhost/vboxdrv/vboxdrv.ko ]] | |
| #then | |
| #echo 'bad: missing: vboxdrv.ko' | |
| #else | |
| #echo 'good: vboxdrv.ko' | |
| #fi | |
| #true | |
| timeout-minutes: 300 | |
| - name: _check_nv-mainline-series535p | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_nv-mainline-series535p | |
| rc=$? # capture the script’s exit code | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| timeout-minutes: 300 | |
| - name: _check_nv-mainline-legacy470 | |
| shell: bash {0} | |
| run: | | |
| set +e # disable automatic exit‑on‑error | |
| set +o pipefail | |
| ./ubiquitous_bash.sh _check_nv-mainline-legacy470 | |
| rc=$? # capture the script’s exit code | |
| echo "exit_code=$rc" >> "$GITHUB_OUTPUT" | |
| exit $rc # explicitly exit with that code | |
| timeout-minutes: 300 | |