jmfayard
02/02/2022, 3:55 PMuses
api not very intuitive (although it follows GitHub convention)
uses(
name = "Download common artifact",
action = DownloadArtifactV2(
name = "common-artifact",
path = "python",
)
)
I was thinking about adding this syntactic sugar
fun step(name: String, condition: String? = null, action: () -> Action)
so that we can do something like this
step("Download common artifact") {
DownloadArtifactV2(
name = "common-artifact",
path = "python",
)
}
jmfayard
02/04/2022, 1:15 PMPiotr Krzemiński
02/14/2022, 8:40 AMjmfayard
02/14/2022, 11:27 AMerror: backend Internal error: Exception during IR lowering
then you no idea what line is causing the problems and have to ressort to trials and errors In my case it was those two snippets:File being compiled: /Users/jmfayard/tignum/backend-tignum-x/.github/workflows/build.main.kts
fun secret(variable: String): String =
"\${{ secrets.$variable }}"
and
data class Step(val name: String, val action: Action)
infix fun String.does(action: Action) = Step(this, action)
Piotr Krzemiński
02/16/2022, 8:43 AMandylamax
02/16/2022, 12:56 PMandylamax
02/21/2022, 2:28 AMPiotr Krzemiński
02/21/2022, 7:04 PMPiotr Krzemiński
02/26/2022, 7:33 PMNikky
02/26/2022, 7:37 PMkhairil.ushan
02/26/2022, 8:07 PMxcodebuild clean archive
comman, it failed to execute the run script. Do I need to setup something related with Java or gradle on my step?Nikky
02/26/2022, 8:16 PMlouiscad
02/27/2022, 5:28 PMor
and and
functions/extensions, plus maybe other operators, and that would allow the library to keep track of which values are referenced, and automatically add the right needs
clauses.Nikky
03/02/2022, 2:16 PMkhairil.ushan
03/03/2022, 5:50 AM./gradlew assembleXCFrameworks
first and that takes so much time, since I also have to do this on macOS vm, it cost much more as well.
Is that common? or is there any work around to cut the time to run that gradle task? Thanks before. 🙏Nikky
03/03/2022, 11:13 PM__FILE__
into toYaml
and writeToFile
functions.. then we can locate the current script and find the target file no matter what directly the script gets executed from..
too bad there is no good way to get it at runtime in the library..Nikky
03/04/2022, 9:56 AMprintln(workflow.toYaml())
adding a newline at the end of the file when piped into the yaml and workflow.writeToFile()
not doing so is not so important right?
.. we could make writeToFile()
add a newline too, just to make it more unified (also some editors show warnings on files without trailing linebreak) i guess its bad form to not have that..Nikky
03/05/2022, 10:13 AMEndToEndTest
is over 600 lines now and that apparently a problem..Nikky
03/05/2022, 11:00 AMinvariantSeparatorsPathString
in one spot)
anyways.. now all the checks pass finallyjmfayard
03/05/2022, 9:51 PMPiotr Krzemiński
03/08/2022, 10:22 AMPiotr Krzemiński
03/09/2022, 7:17 AMjmfayard
03/09/2022, 8:02 AMsudo snap install --classic kotlin
?
Kotlin is installed by default on GitHub actions imagesjmfayard
03/12/2022, 9:26 PMPiotr Krzemiński
03/15/2022, 2:48 PMNikky
03/22/2022, 1:52 PM@file:Repository("<https://jitpack.io>")
@file:DependsOn("com.github.nikkyai:github-actions-kotlin-dsl:main-SNAPSHOT")
when merging the jitpack PR i would suggest people to pin their dependency to a commit hash instead of a branch name to avoid the consistency check failing when branch main
is
moving fast and breaking things😛
Piotr Krzemiński
03/22/2022, 7:34 PMNikky
03/22/2022, 11:25 PMjob.name
is not the same field as Job(name=)
as what the dsl calls name is actually the id.. and name can be set as a display property..
maybe something we would like to fix earlier rather than later..jmfayard
03/24/2022, 3:03 PMJavier
03/24/2022, 3:07 PM