Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
277 changes: 210 additions & 67 deletions .github/workflows/test.main.kts

Large diffs are not rendered by default.

1,069 changes: 969 additions & 100 deletions .github/workflows/test.yaml

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion action-types.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Piotr Krzemiński
# Copyright 2022-2026 Piotr Krzemiński & Björn Kautler
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,7 +17,17 @@ inputs:
distribution:
type: enum
allowed-values:
- Alpine-3.23
- Alpine-3.22
- Alpine-3.21
- Alpine-3.20
- Alpine-3.19
- Alpine-3.18
- Alpine-3.17
- Alpine
- Debian-13
- Debian-12
- Debian-11
- Debian
- kali-linux
- openSUSE-Leap-15.2
Expand Down
28 changes: 26 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2022 Björn Kautler
# Copyright 2020-2026 Björn Kautler
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -27,7 +27,26 @@ inputs:
'Ubuntu-22.04' and 'Ubuntu-20.04' can not be used together at the same time.
They use the same WSL distribution ID, so the second that is used will not be installed
as the first one will be found as already installed by WSL distribution ID.
Valid values: 'Alpine', 'Debian', 'kali-linux', 'openSUSE-Leap-15.2', 'Ubuntu-24.04', 'Ubuntu-22.04', 'Ubuntu-20.04', 'Ubuntu-18.04', 'Ubuntu-16.04'
Valid values:
- 'Alpine-3.23'
- 'Alpine-3.22'
- 'Alpine-3.21'
- 'Alpine-3.20'
- 'Alpine-3.19'
- 'Alpine-3.18'
- 'Alpine-3.17'
- 'Alpine' (deprecated, 'Alpine-3.17' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)
- 'Debian-13'
- 'Debian-12'
- 'Debian-11'
- 'Debian' (deprecated, 'Debian-11' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)
- 'kali-linux'
- 'openSUSE-Leap-15.2'
- 'Ubuntu-24.04'
- 'Ubuntu-22.04'
- 'Ubuntu-20.04'
- 'Ubuntu-18.04'
- 'Ubuntu-16.04'
required: false
default: Debian

Expand All @@ -48,6 +67,11 @@ inputs:
This can be used to adjust various settings as documented at
https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-for-wslconf.
This can also be used if the distribution is installed already.

WARNING: Setting this option will overwrite any existing content of the file.
Some distributions like Debian-12+ and Ubuntu-24.04+ ship with a default wsl.conf file.
Make sure to check whether a file exists by default and whether you want to include
its contents in your configured value.
required: false

set-as-default:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

group = net.kautler
version = 6.0.1-SNAPSHOT
version = 6.1.0-SNAPSHOT
description = A GitHub action to install and setup a Linux distribution for the Windows Subsystem for Linux (WSL)

org.gradle.jvmargs = -Xmx1g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ kotlin {
jsMain {
dependencies {
implementation(libs.kotlinx.coroutines.core)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.js)
implementation(kotlinWrappers.actions.cache)
implementation(kotlinWrappers.actions.core)
implementation(kotlinWrappers.actions.exec)
Expand Down
3 changes: 0 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ build-node = "20.11.0"
build-snakeyaml = "2.6"
kotlin = "2.3.20"
kotlinx-coroutines = "1.10.2"
ktor = "3.4.2"
workflows-kotlin = "2.3.20"

[libraries]
Expand All @@ -37,8 +36,6 @@ build-kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-ser
build-kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json" }
build-snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "build-snakeyaml" }
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
workflows-kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "workflows-kotlin" }
workflows-kotlin-compiler-embeddable = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "workflows-kotlin" }
workflows-kotlin-main-kts = { module = "org.jetbrains.kotlin:kotlin-main-kts", version.ref = "workflows-kotlin" }
Expand Down
5 changes: 0 additions & 5 deletions kotlin-js-store/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,6 @@ wrap-ansi@^8.1.0:
string-width "^5.0.1"
strip-ansi "^7.0.1"

ws@8.18.3:
version "8.18.3"
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.3.tgz#b56b88abffde62791c639170400c93dcb0c95472"
integrity sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==

y18n@^5.0.5:
version "5.0.8"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
Expand Down
18 changes: 14 additions & 4 deletions readme/README_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,18 @@ so the second that is used will not be installed as the first one will be found
WSL distribution ID.

The values currently supported by this action are:
* `Debian` **(default)**
* `Alpine`
* `Alpine-3.23`
* `Alpine-3.22`
* `Alpine-3.21`
* `Alpine-3.20`
* `Alpine-3.19`
* `Alpine-3.18`
* `Alpine-3.17`
* `Alpine` _(deprecated, 'Alpine-3.17' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)_
* `Debian-13`
* `Debian-12`
* `Debian-11`
* `Debian` **(default)** _(deprecated, 'Debian-11' is a drop-in replacement, except for the wsl-shell-distribution-wrapper name)_
* `kali-linux`
* `openSUSE-Leap-15.2`
* `Ubuntu-24.04`
Expand Down Expand Up @@ -187,8 +197,8 @@ https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configuration-settings-f
This can also be used if the distribution is installed already.

**WARNING:** Setting this option will overwrite any existing content of the file.
Some distributions like Ubuntu-24.04 might already ship with a wsl.conf file.
Make sure to check whether a file exists by default and whether you want to included
Some distributions like Debian-12+ and Ubuntu-24.04+ ship with a default wsl.conf file.
Make sure to check whether a file exists by default and whether you want to include
its contents in your configured value.

**Default value:** none
Expand Down
Loading
Loading