menuconfig_mainline #6
This file contains 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: menuconfig_mainline | |
# 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: | |
# 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' | |
# https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
#cancel-in-progress: true | |
jobs: | |
menuconfig_mainline: | |
runs-on: ubuntu-latest | |
#runs-on: ubuntu-20.04 | |
#runs-on: buildjet-2vcpu-ubuntu-2004 | |
#runs-on: buildjet-64vcpu-ubuntu-2004 | |
steps: | |
- 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 | |
uses: easimon/maximize-build-space@master | |
with: | |
#root-reserve-mb: 512 | |
root-reserve-mb: 2048 | |
#temp-reserve-mb: 100 | |
temp-reserve-mb: 300 | |
#swap-size-mb: 128 | |
swap-size-mb: 192 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: '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 current_XZ_OPT_kernelSource="-2" | |
./ubiquitous_bash.sh _fetchKernel-mainline | |
timeout-minutes: 180 | |
#- name: Setup tmate session | |
#uses: mxschmitt/action-tmate@v3 | |
## ssh -i <path-to-key> <tmate-connection-string> | |
#with: | |
#limit-access-to-actor: true | |
#timeout-minutes: 320 | |
- name: Setup upterm session | |
uses: lhotari/action-upterm@v1 | |
with: | |
## limits ssh access and adds the ssh public key for the user which triggered the workflow | |
limit-access-to-actor: true | |
## limits ssh access and adds the ssh public keys of the listed GitHub users | |
# DANGER: Discouraged. Prefer 'limit-access-to-actor' instead. | |
#limit-access-to-users: githubuser1,githubuser2 | |
timeout-minutes: 320 | |
- name: artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: menuconfig | |
path: | | |
./_local/mainline/.config | |
./_prog | |
./_local/ops.sh | |
timeout-minutes: 45 | |