Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Apr 2, 2024
1 parent f09c591 commit 4c9e631
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 54 deletions.
67 changes: 37 additions & 30 deletions .github/workflows/foo.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ workflow(
runsOn = WindowsLatest
) {
uses(
name = "Setup Debian",
name = "Setup Ubuntu",
action = SetupWslV2(
distribution = Distribution.Debian,
additionalPackages = listOf("python3-pip")
distribution = Distribution.Ubuntu2204,
wslShellCommand = "bash -l -eo pipefail"
)
)
// uses(
// name = "Setup Debian",
// action = SetupWslV2(
// distribution = Distribution.Debian,
// additionalPackages = listOf("python3-pip")
// )
// )
// uses(
// name = "Setup Alpine",
// action = SetupWslV2(
// distribution = Distribution.Alpine
Expand All @@ -52,33 +59,33 @@ workflow(
// inputs = emptyMap()
// )
// )
run(
name = "Install HTTPie in Debian",
shell = Shell.Custom("wsl-bash {0}"),
command = "python3 -m pip install --upgrade pip wheel httpie"
)
run(
name = "Install HTTPie in Windows",
command = "python -m pip install --upgrade pip wheel httpie"
)
run(
name = "Check Python version in Debian",
shell = Shell.Custom("wsl-bash {0}"),
command = "python3 --version"
)
run(
name = "Check Python version in Windows",
command = "python --version"
)
run(
name = "Check HTTPie version in Debian",
shell = Shell.Custom("wsl-bash {0}"),
command = "http --version"
)
run(
name = "Check HTTPie version in Windows",
command = "http --version"
)
// run(
// name = "Install HTTPie in Debian",
// shell = Shell.Custom("wsl-bash {0}"),
// command = "python3 -m pip install --upgrade pip wheel httpie"
// )
// run(
// name = "Install HTTPie in Windows",
// command = "python -m pip install --upgrade pip wheel httpie"
// )
// run(
// name = "Check Python version in Debian",
// shell = Shell.Custom("wsl-bash {0}"),
// command = "python3 --version"
// )
// run(
// name = "Check Python version in Windows",
// command = "python --version"
// )
// run(
// name = "Check HTTPie version in Debian",
// shell = Shell.Custom("wsl-bash {0}"),
// command = "http --version"
// )
// run(
// name = "Check HTTPie version in Windows",
// command = "http --version"
// )
uses(
name = "Setup tmate session",
condition = always(),
Expand Down
27 changes: 3 additions & 24 deletions .github/workflows/foo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,12 @@ jobs:
runs-on: windows-latest
steps:
- id: step-0
name: Setup Debian
name: Setup Ubuntu
uses: Vampire/setup-wsl@v2
with:
distribution: Debian
additional-packages: python3-pip
distribution: Ubuntu-22.04
wsl-shell-command: bash -l -eo pipefail
- id: step-1
name: Install HTTPie in Debian
shell: wsl-bash {0}
run: python3 -m pip install --upgrade pip wheel httpie
- id: step-2
name: Install HTTPie in Windows
run: python -m pip install --upgrade pip wheel httpie
- id: step-3
name: Check Python version in Debian
shell: wsl-bash {0}
run: python3 --version
- id: step-4
name: Check Python version in Windows
run: python --version
- id: step-5
name: Check HTTPie version in Debian
shell: wsl-bash {0}
run: http --version
- id: step-6
name: Check HTTPie version in Windows
run: http --version
- id: step-7
name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: always()

0 comments on commit 4c9e631

Please sign in to comment.