wip #49
Workflow file for this run
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
# This file was generated using Kotlin DSL (.github/workflows/foo.main.kts). | |
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. | |
# Generated with https://github.com/krzema12/github-workflows-kt | |
name: Debug | |
on: | |
push: {} | |
env: | |
WSLENV: HOSTNAME:CI:FORCE_COLOR:GITHUB_ACTION:GITHUB_ACTION_PATH/p:GITHUB_ACTION_REPOSITORY:GITHUB_WORKFLOW:GITHUB_WORKSPACE/p:GITHUB_PATH/p:GITHUB_ENV/p:VIRTUAL_ENV/p | |
HOSTNAME: gha | |
jobs: | |
test: | |
name: Test | |
runs-on: windows-latest | |
steps: | |
- name: Activate WSL | |
uses: Vampire/setup-wsl@v3.0.0 | |
with: | |
distribution: Ubuntu-22.04 | |
set-as-default: 'true' | |
wsl-shell-command: "bash -l -eo pipefail" | |
wsl-conf: | | |
[automount] | |
enabled = true | |
root = / | |
options = "metadata,umask=077" | |
[interop] | |
enabled = false | |
appendWindowsPath = false | |
[network] | |
hostname = wsl | |
additional-packages: | |
curl | |
dirmngr | |
gawk | |
git | |
gpg | |
gpg-agent | |
make | |
tar | |
- id: step-1 | |
shell: wsl-bash {0} | |
run: cat <(echo 'echo /etc/profile') /etc/profile >/tmp/profile; mv /tmp/profile /etc/ | |
- id: step-2 | |
shell: wsl-bash {0} | |
run: cat <(echo 'echo /etc/bash.bashrc') /etc/bash.bashrc >/tmp/bash.bashrc; mv /tmp/bash.bashrc /etc/ | |
- id: step-3 | |
shell: wsl-bash {0} | |
run: cat <(echo 'echo ~/.bashrc') ~/.bashrc >/tmp/.bashrc; mv /tmp/.bashrc ~ | |
- id: step-4 | |
name: Install asdf inside WSL | |
shell: wsl-bash {0} | |
run: | | |
set -ex | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 | |
echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc | |
export ASDF_DIR="$HOME/.asdf" | |
. "$HOME/.asdf/asdf.sh" | |
asdf plugin add task | |
asdf install | |
task --version | |
- id: step-5 | |
name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
if: always() |