File tree Expand file tree Collapse file tree 6 files changed +9
-14
lines changed Expand file tree Collapse file tree 6 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/sh
22
3- VERSION=dev-2023-03
3+ VERSION=dev-2023-04
44FILE_NAME=odin-ubuntu-amd64-$VERSION .zip
55sudo apt-get install -y aria2
66mkdir /tmp/odin
77cd /tmp/odin
88aria2c -c -o $FILE_NAME https://github.com/odin-lang/Odin/releases/download/$VERSION /$FILE_NAME
9- if test -d ubuntu_artifacts; then rm -r ubuntu_artifacts; fi
9+ if test -d ubuntu_artifacts; then sudo rm -rf ubuntu_artifacts; fi
1010unzip -o $FILE_NAME
1111if test -d ubuntu_artifacts; then ODIN_BIN_PATH=$PWD /ubuntu_artifacts/odin; else ODIN_BIN_PATH=$PWD /odin; fi
1212sudo chmod +x $ODIN_BIN_PATH
Original file line number Diff line number Diff line change 55sudo apt-get install -y libgc-dev
66git clone https://github.com/vlang/v /tmp/vlang
77cd /tmp/vlang
8- pushd vlib/vweb
9- cat vweb.v | sed " s/\bprintln('\[Vweb\] Running/eprintln('[Vweb] Running/" > temp.v && mv temp.v vweb.v
10- popd
118make && ./v -version
129./v symlink
1310v --version
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn main() {
1313 n = strconv.atoi (os.args[1 ]) or { 10 }
1414 }
1515 port := int (rand.u32_in_range (20000 , 50000 ) or { 23333 })
16- spawn vweb.run (& App{}, port)
16+ spawn vweb.run_at (& App{}, port: port, show_startup_message: false )
1717 url := 'http://localhost:${port} /api'
1818 mut ch := chan int {cap: n}
1919 for i in 1 .. (n + 1 ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
33import org.jetbrains.kotlin.config.KotlinCompilerVersion
44
55plugins {
6- val kotlinVersion = " 1.8.10 "
6+ val kotlinVersion = " 1.8.20 "
77 kotlin(" jvm" ).version(kotlinVersion)
88 kotlin(" plugin.serialization" ).version(kotlinVersion)
99 // kotlin("plugin.spring").version(kotlinVersion)
@@ -31,7 +31,7 @@ dependencies {
3131 // implementation("org.slf4j:slf4j-api:1.7.36")
3232 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" )
3333 implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0" )
34- implementation(" org.jetbrains.kotlinx:atomicfu:0.20.1 " )
34+ implementation(" org.jetbrains.kotlinx:atomicfu:0.20.2 " )
3535 val ktor_version = " 2.2.4"
3636 implementation(" io.ktor:ktor-server-core:$ktor_version " )
3737 // implementation("io.ktor:ktor-server-netty:$ktor_version")
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.config.KotlinCompilerVersion
33import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
44
55plugins {
6- val kotlinVersion = " 1.8.10 "
6+ val kotlinVersion = " 1.8.20 "
77 kotlin(" multiplatform" ).version(kotlinVersion)
88 kotlin(" plugin.serialization" ).version(kotlinVersion)
99 id(" com.github.ben-manes.versions" ).version(" 0.46.0" )
Original file line number Diff line number Diff line change 11const std = @import ("std" );
2- const Builder = std .build .Builder ;
32
4- pub fn build (b : * Builder ) void {
3+ pub fn build (b : * std.Build ) void {
54 // Standard target options allows the person running `zig build` to choose
65 // what target to build for. Here we do not override the defaults, which
76 // means any target is allowed, and the default is native. Other options
@@ -19,10 +18,9 @@ pub fn build(b: *Builder) void {
1918 .optimize = std .builtin .Mode .ReleaseFast ,
2019 });
2120 exe .linkLibC ();
22- // exe.setOutputDir("out");
23- exe .install ();
21+ b .installArtifact (exe );
2422
25- const run_cmd = exe . run ( );
23+ const run_cmd = b . addRunArtifact ( exe );
2624 run_cmd .step .dependOn (b .getInstallStep ());
2725 if (b .args ) | args | {
2826 run_cmd .addArgs (args );
You can’t perform that action at this time.
0 commit comments