Skip to content

Commit

Permalink
Merge pull request #192 from guitarrapc/feature/install
Browse files Browse the repository at this point in the history
chore: custom dotnet instlalation path
  • Loading branch information
guitarrapc authored Oct 15, 2024
2 parents 56a7200 + 8e243ed commit 254606e
Show file tree
Hide file tree
Showing 8 changed files with 219 additions and 187 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/setup-dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

jobs:
setup:
default:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -56,3 +56,38 @@ jobs:
echo "::group::dotnet sdks"
dotnet --list-sdks
echo "::endgroup::"
install_dir:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04, ubuntu-22.04]
runs-on: ${{ matrix.runs-on }}
timeout-minutes: 3
steps:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
env:
DOTNET_INSTALL_DIR: ${{ runner.temp}}/.dotnet
- name: dotnet after setup-dotnet (/usr/share/dotnet/dotnet)
run: |
echo "::group::dotnet path"
command -v dotnet
echo "::endgroup::"
echo "::group::dotnet files under /usr/share/dotnet/sdk"
ls -l "$(command -v dotnet)"
echo "::endgroup::"
echo "::group::dotnet files under ${{ env.DOTNET_ROOT }}/sdk"
ls -l "${{ env.DOTNET_ROOT }}/sdk"
echo "::endgroup::"
echo "::group::dotnet version"
dotnet --version
echo "::endgroup::"
echo "::group::dotnet sdks"
dotnet --list-sdks
echo "::endgroup::"
38 changes: 19 additions & 19 deletions contexts/env/pull_request_opened.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar
CONDA=/usr/share/miniconda
GITHUB_WORKSPACE=/home/runner/work/githubactions-lab/githubactions-lab
JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_fe24c709-aa26-42ae-b005-58749aadd455
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_63737975-4246-4fe0-bd9c-cd8da4a94484
GITHUB_ACTION=__run
JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64
GITHUB_RUN_NUMBER=1229
RUNNER_NAME=GitHub Actions 33
GITHUB_RUN_NUMBER=1239
RUNNER_NAME=GitHub Actions 34
GRADLE_HOME=/usr/share/gradle-8.10.2
GITHUB_REPOSITORY_OWNER_ID=3856350
ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache
Expand All @@ -30,37 +30,37 @@ GITHUB_ACTIONS=true
STATS_VMD=true
CONTEXT={}
ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/27.1.12297006
SYSTEMD_EXEC_PID=824
GITHUB_SHA=5897a73a717de5d87511c7a3b827042e4e2bc21e
GITHUB_WORKFLOW_REF=guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/191/merge
SYSTEMD_EXEC_PID=822
GITHUB_SHA=5bd04f23622a73f177b50ec189b22f7c06440815
GITHUB_WORKFLOW_REF=guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/pull/192/merge
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu24
RUNNER_ENVIRONMENT=github-hosted
STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data
DOTNET_MULTILEVEL_LOOKUP=0
STATS_TIS=mining
GITHUB_REF=refs/pull/191/merge
GITHUB_REF=refs/pull/192/merge
RUNNER_OS=Linux
GITHUB_REF_PROTECTED=false
HOME=/home/runner
GITHUB_API_URL=https://api.github.com
LANG=C.UTF-8
RUNNER_TRACKING_ID=github_365acd23-3a1d-4b21-948d-37adaeb0a101
RUNNER_TRACKING_ID=github_7889fe59-ea1f-4daa-97b1-151bef689538
RUNNER_ARCH=X64
GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.13/x64
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure
RUNNER_TEMP=/home/runner/work/_temp
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_fe24c709-aa26-42ae-b005-58749aadd455
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_63737975-4246-4fe0-bd9c-cd8da4a94484
EDGEWEBDRIVER=/usr/local/share/edge_driver
JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_fe24c709-aa26-42ae-b005-58749aadd455
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_63737975-4246-4fe0-bd9c-cd8da4a94484
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
INVOCATION_ID=da6f71e67b074c88b1a8653c12469b9e
INVOCATION_ID=4c994ec7fe4f4420b026c94d374d752d
STATS_D=false
GITHUB_EVENT_NAME=pull_request
GITHUB_RUN_ID=11348725963
GITHUB_RUN_ID=11350064572
JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64
ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/27.1.12297006
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_fe24c709-aa26-42ae-b005-58749aadd455
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_63737975-4246-4fe0-bd9c-cd8da4a94484
HOMEBREW_NO_AUTO_UPDATE=1
GITHUB_ACTOR=guitarrapc
SGX_AESM_ADDR=1
Expand All @@ -86,19 +86,19 @@ RUNNER_TOOL_CACHE=/opt/hostedtoolcache
ImageVersion=20241006.1.0
DOTNET_NOLOGO=1
GOROOT_1_23_X64=/opt/hostedtoolcache/go/1.23.2/x64
GITHUB_WORKFLOW_SHA=5897a73a717de5d87511c7a3b827042e4e2bc21e
GITHUB_REF_NAME=191/merge
GITHUB_WORKFLOW_SHA=5bd04f23622a73f177b50ec189b22f7c06440815
GITHUB_REF_NAME=192/merge
GITHUB_JOB=dump-context
XDG_RUNTIME_DIR=/run/user/1001
AZURE_EXTENSION_DIR=/opt/az/azcliextensions
PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG
STATS_VMFE=true
GITHUB_REPOSITORY=guitarrapc/githubactions-lab
ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/27.1.12297006
GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.8/x64
ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/27.1.12297006
CHROME_BIN=/usr/bin/google-chrome
GITHUB_RETENTION_DAYS=90
JOURNAL_STREAM=8:8271
JOURNAL_STREAM=8:6632
RUNNER_WORKSPACE=/home/runner/work/githubactions-lab
GITHUB_ACTION_REPOSITORY=
PATH=/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Expand All @@ -110,10 +110,10 @@ SWIFT_PATH=/usr/share/swift/usr/bin
ImageOS=ubuntu24
STATS_D_D=false
GITHUB_REPOSITORY_OWNER=guitarrapc
GITHUB_HEAD_REF=feature/setup-dotnet
GITHUB_HEAD_REF=feature/install
GITHUB_ACTION_REF=
GITHUB_WORKFLOW=auto dump context
DEBIAN_FRONTEND=noninteractive
GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_fe24c709-aa26-42ae-b005-58749aadd455
GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_63737975-4246-4fe0-bd9c-cd8da4a94484
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
_=/usr/bin/env
65 changes: 31 additions & 34 deletions contexts/env/pull_request_target_opened.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,40 @@ SELENIUM_JAR_PATH=/usr/share/java/selenium-server.jar
CONDA=/usr/share/miniconda
GITHUB_WORKSPACE=/home/runner/work/githubactions-lab/githubactions-lab
JAVA_HOME_11_X64=/usr/lib/jvm/temurin-11-jdk-amd64
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_5d5d6d2e-220a-4116-bb26-efabce60457e
GITHUB_PATH=/home/runner/work/_temp/_runner_file_commands/add_path_387e88a6-ac99-46b2-96d6-6eeb16ba5ef8
GITHUB_ACTION=__run
JAVA_HOME=/usr/lib/jvm/temurin-11-jdk-amd64
GITHUB_RUN_NUMBER=1043
RUNNER_NAME=GitHub Actions 7
GRADLE_HOME=/usr/share/gradle-8.8
JAVA_HOME=/usr/lib/jvm/temurin-17-jdk-amd64
GITHUB_RUN_NUMBER=1238
RUNNER_NAME=GitHub Actions 5
GRADLE_HOME=/usr/share/gradle-8.10.2
GITHUB_REPOSITORY_OWNER_ID=3856350
ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache
XDG_CONFIG_HOME=/home/runner/.config
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
ANT_HOME=/usr/share/ant
JAVA_HOME_8_X64=/usr/lib/jvm/temurin-8-jdk-amd64
OUTPUT_PATH=contexts/env
GITHUB_TRIGGERING_ACTOR=guitarrapc
GITHUB_REF_TYPE=branch
HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS=3650
ANDROID_NDK=/usr/local/lib/android/sdk/ndk/25.2.9519653
ANDROID_NDK=/usr/local/lib/android/sdk/ndk/27.1.12297006
BOOTSTRAP_HASKELL_NONINTERACTIVE=1
PWD=/home/runner/work/githubactions-lab/githubactions-lab
PIPX_BIN_DIR=/opt/pipx_bin
STATS_TRP=true
STATS_BLT=true
GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64
GITHUB_REPOSITORY_ID=257465468
DEPLOYMENT_BASEPATH=/opt/runner
GITHUB_ACTIONS=true
STATS_VMD=true
CONTEXT={}
ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/26.3.11579264
SYSTEMD_EXEC_PID=588
GITHUB_SHA=eb9f64bd989ed8f0e40a6fafa626bf1655bbccba
ANDROID_NDK_LATEST_HOME=/usr/local/lib/android/sdk/ndk/27.1.12297006
SYSTEMD_EXEC_PID=824
GITHUB_SHA=56a720013ff9a9a4a4d0a95be1f15b9f7b95619c
GITHUB_WORKFLOW_REF=guitarrapc/githubactions-lab/.github/workflows/auto_dump_context.yaml@refs/heads/main
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu22
POWERSHELL_DISTRIBUTION_CHANNEL=GitHub-Actions-ubuntu24
RUNNER_ENVIRONMENT=github-hosted
STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-0.5.181+6/provjobd.data
STATS_EXTP=https://provjobdsettingscdn.blob.core.windows.net/settings/provjobdsettings-latest/provjobd.data
DOTNET_MULTILEVEL_LOOKUP=0
STATS_TIS=mining
GITHUB_REF=refs/heads/main
Expand All @@ -45,25 +44,25 @@ GITHUB_REF_PROTECTED=false
HOME=/home/runner
GITHUB_API_URL=https://api.github.com
LANG=C.UTF-8
RUNNER_TRACKING_ID=github_46624743-7be7-4bc1-afea-5e7ae33f2224
RUNNER_TRACKING_ID=github_1de2ce04-0587-48b3-a193-4c31b2a327f4
RUNNER_ARCH=X64
GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.10/x64
GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.13/x64
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure
RUNNER_TEMP=/home/runner/work/_temp
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_5d5d6d2e-220a-4116-bb26-efabce60457e
GITHUB_STATE=/home/runner/work/_temp/_runner_file_commands/save_state_387e88a6-ac99-46b2-96d6-6eeb16ba5ef8
EDGEWEBDRIVER=/usr/local/share/edge_driver
JAVA_HOME_21_X64=/usr/lib/jvm/temurin-21-jdk-amd64
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_5d5d6d2e-220a-4116-bb26-efabce60457e
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_387e88a6-ac99-46b2-96d6-6eeb16ba5ef8
GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json
INVOCATION_ID=cc483b0c6eb64b40adb130c9a82197c6
INVOCATION_ID=6d3609c670d84d6d92bff768918fbe62
STATS_D=false
GITHUB_EVENT_NAME=pull_request_target
GITHUB_RUN_ID=9464376202
GITHUB_RUN_ID=11350064517
JAVA_HOME_17_X64=/usr/lib/jvm/temurin-17-jdk-amd64
ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/25.2.9519653
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_5d5d6d2e-220a-4116-bb26-efabce60457e
ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/27.1.12297006
GITHUB_STEP_SUMMARY=/home/runner/work/_temp/_runner_file_commands/step_summary_387e88a6-ac99-46b2-96d6-6eeb16ba5ef8
HOMEBREW_NO_AUTO_UPDATE=1
GITHUB_ACTOR=guitarrapc
NVM_DIR=/home/runner/.nvm
SGX_AESM_ADDR=1
GITHUB_RUN_ATTEMPT=1
STATS_RDCL=true
Expand All @@ -73,50 +72,48 @@ ACCEPT_EULA=Y
RUNNER_USER=runner
STATS_UE=true
USER=runner
GIT_CLONE_PROTECTION_ACTIVE=false
GITHUB_SERVER_URL=https://github.com
STATS_V3PS=true
PIPX_HOME=/opt/pipx
GECKOWEBDRIVER=/usr/local/share/gecko_driver
STATS_EXT=true
CHROMEWEBDRIVER=/usr/local/share/chromedriver-linux64
SHLVL=0
SHLVL=1
ANDROID_SDK_ROOT=/usr/local/lib/android/sdk
VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg
GITHUB_ACTOR_ID=3856350
RUNNER_TOOL_CACHE=/opt/hostedtoolcache
ImageVersion=20240603.1.0
ImageVersion=20241006.1.0
DOTNET_NOLOGO=1
GITHUB_WORKFLOW_SHA=eb9f64bd989ed8f0e40a6fafa626bf1655bbccba
GOROOT_1_23_X64=/opt/hostedtoolcache/go/1.23.2/x64
GITHUB_WORKFLOW_SHA=56a720013ff9a9a4a4d0a95be1f15b9f7b95619c
GITHUB_REF_NAME=main
GITHUB_JOB=dump-context
XDG_RUNTIME_DIR=/run/user/1001
AZURE_EXTENSION_DIR=/opt/az/azcliextensions
PERFLOG_LOCATION_SETTING=RUNNER_PERFLOG
STATS_VMFE=true
GITHUB_REPOSITORY=guitarrapc/githubactions-lab
ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/27.1.12297006
GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.8/x64
CHROME_BIN=/usr/bin/google-chrome
GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.3/x64
ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/25.2.9519653
GITHUB_RETENTION_DAYS=90
JOURNAL_STREAM=8:18388
JOURNAL_STREAM=8:5725
RUNNER_WORKSPACE=/home/runner/work/githubactions-lab
LEIN_HOME=/usr/local/lib/lein
LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.11.2-standalone.jar
GITHUB_ACTION_REPOSITORY=
PATH=/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
RUNNER_PERFLOG=/home/runner/perflog
GITHUB_BASE_REF=main
GHCUP_INSTALL_BASE_PREFIX=/usr/local
CI=true
SWIFT_PATH=/usr/share/swift/usr/bin
ImageOS=ubuntu22
ImageOS=ubuntu24
STATS_D_D=false
GITHUB_REPOSITORY_OWNER=guitarrapc
GITHUB_HEAD_REF=feature/doc
GITHUB_HEAD_REF=feature/install
GITHUB_ACTION_REF=
GITHUB_WORKFLOW=auto dump context
DEBIAN_FRONTEND=noninteractive
GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_5d5d6d2e-220a-4116-bb26-efabce60457e
GITHUB_OUTPUT=/home/runner/work/_temp/_runner_file_commands/set_output_387e88a6-ac99-46b2-96d6-6eeb16ba5ef8
AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
_=/usr/bin/env
Loading

0 comments on commit 254606e

Please sign in to comment.