diff --git a/.github/workflows/foo.main.kts b/.github/workflows/foo.main.kts index 6951b11..da77661 100755 --- a/.github/workflows/foo.main.kts +++ b/.github/workflows/foo.main.kts @@ -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 @@ -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(), diff --git a/.github/workflows/foo.yaml b/.github/workflows/foo.yaml index 425e116..c31cfa3 100644 --- a/.github/workflows/foo.yaml +++ b/.github/workflows/foo.yaml @@ -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()